X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fautopurge_functions.php;h=baa71aa6cba9fbdd5deb8a216f3cbc3b0ac88c3b;hp=bf2b9d71cc5c00fbf661faf06f221dbce89dada9;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hpb=ca256746fe0757a23df4064824c8fe2087ad5634 diff --git a/inc/libs/autopurge_functions.php b/inc/libs/autopurge_functions.php index bf2b9d71cc..baa71aa6cb 100644 --- a/inc/libs/autopurge_functions.php +++ b/inc/libs/autopurge_functions.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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