]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_daily.php
Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / reset / reset_daily.php
index 9fb76538548c489034810265947efe70fc25b149..d033e12db7abf952e6244b1300b4d7434197468d 100644 (file)
@@ -78,7 +78,7 @@ ORDER BY
        `userid` ASC", __FILE__, __LINE__);
 
 //* DEBUG: */ debugOutput(basename(__FILE__) . ':payout=0;daily|numRows=' . SQL_NUMROWS($result_daily));
-if (SQL_NUMROWS($result_daily) > 0) {
+if (!SQL_HASZERONUMS($result_daily)) {
        // Init SQLs
        initSqls();
 
@@ -98,7 +98,7 @@ ORDER BY
                        array(bigintval($content['userid'])), __FILE__, __LINE__);
 
                //* DEBUG: */ debugOutput(basename(__FILE__) . ':payout=0;points|numRows=' . SQL_NUMROWS($result_points));
-               if (SQL_NUMROWS($result_points) > 0) {
+               if (!SQL_HASZERONUMS($result_points)) {
                        // Ok transfer points
                        while ($content2 = SQL_FETCHARRAY($result_points)) {
                                // Merge both arrays