From: Roland Häder Date: Wed, 11 Mar 2009 17:24:05 +0000 (+0000) Subject: Fix for broken SQL queries X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=acfab4c558dc0cab788213d5861121170d541258 Fix for broken SQL queries --- 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