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