]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/beg_functions.php
Rewrote script to use more EL, introduced wrappers for sending pool:
[mailer.git] / inc / libs / beg_functions.php
index 149a96b5f4b940f3dd0fd05aafb983c65b990231..8d96d1d25b463b607f151088fc2683a873d92376 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 // Add points to user or begging rallye account
 function addPointsBeg ($userid, $points) {
        // Default is not added
-       $added = false;
+       $added = FALSE;
 
        // Is begging rallye active?
        if (isBegRallyeEnabled()) {
@@ -60,7 +60,7 @@ function addPointsBeg ($userid, $points) {
        }
 
        // Subtract begged points from member account if the admin has selected one
-       if (($added === true) && (isValidUserId(getBegUserid()))) {
+       if (($added === TRUE) && (isValidId(getBegUserid()))) {
                // Subtract from this account
                $added = ($added && subtractPoints('beg_payout', getBegUserid(), $points));
        } // END - if
@@ -74,7 +74,7 @@ function addPointsBeg ($userid, $points) {
 //-----------------------------------------------------------------------------
 
 // Outputs points which a member can get
-function doTemplateOutputBegPoints ($templateName, $clear = false) {
+function doTemplateOutputBegPoints ($templateName, $clear = FALSE) {
        // Default is not the same
        $return = '{--BEG_POINTS_MIN_MAX--}';