X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=061f5399c76d11b38bdb72c1a9a7ec60b2b11e40;hb=1ffe0cfd818ad48f7c227915d3abf68d26d8a06c;hp=9d828f8b440e40ac8147662eefc32acd328bd4ff;hpb=3eec97aa6e84961c8d2ce2ea3f47d92f0e4bdb4f;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 9d828f8b44..061f5399c7 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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; }