From cd16155c96f7ea4ead1a0ec87198913d3414dc84 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 15 Sep 2017 03:10:04 +0000 Subject: [PATCH] Only warn when there are arguments at all --- include/dba.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dba.php b/include/dba.php index 48f1955428..16261efd2e 100644 --- a/include/dba.php +++ b/include/dba.php @@ -391,7 +391,7 @@ class dba { return false; } - if (substr_count($sql, '?') != count($args)) { + if ((substr_count($sql, '?') != count($args)) && (count($args) > 0)) { // Question: Should we continue or stop the query here? logger('Parameter mismatch. Query "'.$sql.'" - Parameters '.print_r($args, true), LOGGER_DEBUG); } -- 2.39.5