Commit c55c7a86 authored by Andrey Filippov's avatar Andrey Filippov

got rid of PHP Warning: count(): Parameter must be an array or an object that...

got rid of PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/eyesis/git/elphel-tools-x393/extract_images.php on line 218
parent 3a4084ba
......@@ -215,7 +215,7 @@ function elphel_specific_result_name($file){
}else{
$ks = $exif['PageNumber'];
if (count($ks==2)){
if (is_array($ks) && (count($ks) ==2)){
$k = $ks[0];
}else{
$k = intval($exif['PageNumber'])+1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment