]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-user.php
Heacy rewrite/cleanup:
[mailer.git] / inc / pool / pool-user.php
index f65a12cee40008160774a574331bc3df786e9de5..25dbf25c55e9943ab85b6474787fd63860bf99a6 100644 (file)
@@ -306,7 +306,7 @@ if (!ifSqlHasZeroNums($result_main)) {
        } // END - while
 
        // Is there points to "pay back"?
-       if ((count($pointsBack) > 0) && (!empty($pointsBack[0]))) {
+       if ((isFilledArray($pointsBack)) && (!empty($pointsBack[0]))) {
                // Walk through all points
                foreach ($pointsBack as $userid => $PB) {
                        // Add points only when we have points left to add and a valid user id