From 2905623027a16bb073ee40f9feb9cc482da245ed Mon Sep 17 00:00:00 2001 From: Linty Date: Tue, 10 Sep 2024 14:55:28 +0200 Subject: [PATCH] fixes #2214 initialize total_count before using it --- include/ws_functions/pwg.users.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ws_functions/pwg.users.php b/include/ws_functions/pwg.users.php index e997be81d..b0d4dfc45 100644 --- a/include/ws_functions/pwg.users.php +++ b/include/ws_functions/pwg.users.php @@ -238,6 +238,7 @@ SELECT DISTINCT '; } $users = array(); $result = pwg_query($query); + $total_count = 0; /* GET THE RESULT OF SQL_CALC_FOUND_ROWS if display total_count is requested*/ if (isset($params['display']['total_count'])) {