X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-stats.php;h=8a37457834b40138ecdace2802f72110ab840217;hb=34db702d004b245e5528b0ba20c6de441f61820a;hp=510dc049db5133f7cd5c7b3eb687bf4b1f32f4f1;hpb=23a0d1d2d4a396576a77b1d04942ffefee999185;p=mailer.git diff --git a/inc/modules/member/what-stats.php b/inc/modules/member/what-stats.php index 510dc049db..8a37457834 100644 --- a/inc/modules/member/what-stats.php +++ b/inc/modules/member/what-stats.php @@ -63,7 +63,7 @@ ORDER BY array(getMemberId()), __FILE__, __LINE__); // Are there mails left in pool? -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // Load all orders $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { @@ -95,7 +95,7 @@ ORDER BY `timestamp_ordered` DESC", array(getMemberId()), __FILE__, __LINE__); -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // Mail orders are in pool so we can display them $OUT = ''; while ($content = SQL_FETCHARRAY($result)) {