More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / member / what-stats.php
index 510dc049db5133f7cd5c7b3eb687bf4b1f32f4f1..8a37457834b40138ecdace2802f72110ab840217 100644 (file)
@@ -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)) {