]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-payout.php
More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / member / what-payout.php
index 246e0e31402819f3977cc7501045cbc250ec5919..edb05b80424fb096c29798ba73caf3bcfb007072 100644 (file)
@@ -77,7 +77,7 @@ WHERE
 ORDER BY
        `type` ASC",
                array($totalPoints), __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // Free memory
                SQL_FREERESULT($result);
 
@@ -95,7 +95,7 @@ WHERE
 ORDER BY
        p.payout_timestamp DESC",
                        array(getMemberId()), __FILE__, __LINE__);
-               if (SQL_NUMROWS($result_payouts) > 0) {
+               if (!SQL_HASZERONUMS($result_payouts)) {
                        // List all his requests
                        $OUT = '';
                        while ($content = SQL_FETCHARRAY($result_payouts)) {