From 7f24787b42372de1b40fa09552d1d5f16e755b25 Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:24:33 +0100 Subject: [PATCH] fixes #2322 set to 0 if null some values being used in $result are null --- include/dblayer/functions_mysqli.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dblayer/functions_mysqli.inc.php b/include/dblayer/functions_mysqli.inc.php index 68ed83f2a..cbef10da3 100644 --- a/include/dblayer/functions_mysqli.inc.php +++ b/include/dblayer/functions_mysqli.inc.php @@ -198,7 +198,7 @@ function pwg_db_changes() function pwg_db_num_rows($result) { - return $result->num_rows; + return $result->num_rows ?? 0; } function pwg_db_fetch_array($result)