]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/autopurge_functions.php
Some minor rewrites, addPointsAutoPurge() now validates the userid before executing...
[mailer.git] / inc / libs / autopurge_functions.php
index 176e6e40c43ed5f846cee239e7093b99d834e203..8843c5614508f50b4f3f3aa12b06af9a09179d70 100644 (file)
@@ -44,6 +44,12 @@ if (!defined('__SECURITY')) {
 
 // Add points in autopurge-mode
 function addPointsAutoPurge ($userid, $points) {
+       // Is the userid valid?
+       if (!isValidUserId($userid)) {
+               // Please report all these bugs
+               debug_report_bug(__FUNCTION__, __LINE__, 'Invalid call. userid=' . $userid . ',points=' . $points);
+       } // END - if
+
        // Add points over the ref system directly now
        addPointsDirectly('autopurge_add', $userid, $points);