From 90315e34344fc229f5a3913db50c96df315c119a Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 7 Sep 2020 05:00:17 +0000 Subject: [PATCH] Don't perform actions on empty conditions --- src/Database/DBA.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Database/DBA.php b/src/Database/DBA.php index b45f7cfb2..babc4500e 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -677,6 +677,10 @@ class DBA $result = []; foreach ($conditions as $key => $condition) { + if (!$condition) { + continue; + } + $condition = self::collapseCondition($condition); $conditionStrings[] = array_shift($condition);