]> git.mxchange.org Git - friendica.git/commitdiff
Fix count() warning in include/dba.php
authorHypolite Petovan <mrpetovan@gmail.com>
Mon, 23 Apr 2018 04:00:06 +0000 (00:00 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 23 Apr 2018 04:00:06 +0000 (00:00 -0400)
include/dba.php

index bac61ec2f519160d06d026e84d485abc94d0811d..d2f631c0640d84e936b5466ca4373e5e5f029ebe 100644 (file)
@@ -971,7 +971,7 @@ class dba {
                                        // Split the SQL queries in chunks of 100 values
                                        // We do the $i stuff here to make the code better readable
                                        $i = $counter[$key_table][$key_condition];
-                                       if (count($compacted[$key_table][$key_condition][$i]) > 100) {
+                                       if (isset($compacted[$key_table][$key_condition][$i]) && count($compacted[$key_table][$key_condition][$i]) > 100) {
                                                ++$i;
                                        }