]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/autopurge_functions.php
Renamed more templates
[mailer.git] / inc / libs / autopurge_functions.php
index bf2b9d71cc5c00fbf661faf06f221dbce89dada9..e66c107b61f9a6ee07da4ab8dd20549251dbbaaa 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 // Add points in autopurge-mode
 function addPointsAutoPurge ($userid, $points) {
        // Is the userid valid?
-       if (!isValidId($userid)) {
+       if ((!isValidId($userid)) || ($points <= 0)) {
                // Please report all these bugs
                reportBug(__FUNCTION__, __LINE__, 'Invalid call. userid=' . $userid . ',points=' . $points);
        } // END - if