projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
af7035c
)
Fix for broken SQL queries
author
Roland Häder
<roland@mxchange.org>
Wed, 11 Mar 2009 17:24:05 +0000
(17:24 +0000)
committer
Roland Häder
<roland@mxchange.org>
Wed, 11 Mar 2009 17:24:05 +0000
(17:24 +0000)
inc/mysql-manager.php
patch
|
blob
|
history
diff --git
a/inc/mysql-manager.php
b/inc/mysql-manager.php
index 57ca77e32a66613d94794caec488a6c089ea547a..d8cbc5e2d12965693dac7f29df45025aa7894a5d 100644
(file)
--- 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."<br />\n";
- if (
empty($search
)) {
+ if (
(empty($search)) && ($search != "0"
)) {
// Count or sum whole table?
if ($countRows === true) {
// Count whole table