From bc1625d940bdd54c8d71e9c1fefcffd5756b10e4 Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:26:18 +0100 Subject: [PATCH] (cp 7f24787b4) fixes #2322 set to 0 if 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)