X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fautopurge_functions.php;h=e66c107b61f9a6ee07da4ab8dd20549251dbbaaa;hb=0ed9eaa5aea8db1f690a983a39ff4b2074faf6c5;hp=bf2b9d71cc5c00fbf661faf06f221dbce89dada9;hpb=ca256746fe0757a23df4064824c8fe2087ad5634;p=mailer.git diff --git a/inc/libs/autopurge_functions.php b/inc/libs/autopurge_functions.php index bf2b9d71cc..e66c107b61 100644 --- a/inc/libs/autopurge_functions.php +++ b/inc/libs/autopurge_functions.php @@ -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