]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
Added Lock Unittests & Bugfixings
[friendica.git] / include / dba.php
index 9d828f8b440e40ac8147662eefc32acd328bd4ff..061f5399c76d11b38bdb72c1a9a7ec60b2b11e40 100644 (file)
@@ -1109,7 +1109,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];
+                                       $i = isset($counter[$key_table][$key_condition]) ? $counter[$key_table][$key_condition] : 0;
                                        if (isset($compacted[$key_table][$key_condition][$i]) && count($compacted[$key_table][$key_condition][$i]) > 100) {
                                                ++$i;
                                        }