Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / member / what-stats.php
index 48b5a2610faf59f5b22e3cc11d08bc784f1e5572..9c62bc4fd2338fc2f8bd23a4df2b26620afa8b0f 100644 (file)
@@ -69,7 +69,7 @@ ORDER BY
        array(getMemberId()), __FILE__, __LINE__);
 
 // Are there mails left in pool?
-if (!ifSqlHasZeroNums($result)) {
+if (!ifSqlHasZeroNumRows($result)) {
        // Load all orders
        $OUT = '';
        while ($content = sqlFetchArray($result)) {
@@ -109,7 +109,7 @@ ORDER BY
        `timestamp_ordered` DESC',
        array(getMemberId()), __FILE__, __LINE__);
 
-if (!ifSqlHasZeroNums($result)) {
+if (!ifSqlHasZeroNumRows($result)) {
        // Mail orders are in pool so we can display them
        $OUT = '';
        while ($content = sqlFetchArray($result)) {