From a84477ed2d0e30e9a001d5ffa7f5cabc47ee7f3c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 23 Apr 2018 00:00:06 -0400 Subject: [PATCH] Fix count() warning in include/dba.php --- include/dba.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dba.php b/include/dba.php index bac61ec2f5..d2f631c064 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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; }