From acfab4c558dc0cab788213d5861121170d541258 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 11 Mar 2009 17:24:05 +0000 Subject: [PATCH] Fix for broken SQL queries --- inc/mysql-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 57ca77e32a..d8cbc5e2d1 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1061,7 +1061,7 @@ function REMOVE_RECEIVER (&$receivers, $key, $uid, $pool_id, $stats_id="", $bonu function GET_TOTAL_DATA ($search, $tableName, $lookFor = "id", $whereStatement = "userid", $countRows = false, $add = "") { $ret = 0; //* DEBUG: */ echo $search."/".$tableName."/".$lookFor."/".$whereStatement."/".$add."
\n"; - if (empty($search)) { + if ((empty($search)) && ($search != "0")) { // Count or sum whole table? if ($countRows === true) { // Count whole table -- 2.39.5