X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fbeg_functions.php;h=b3622839f1bbe93b30b84189018c7281b1bd16be;hp=49b4beb6e62481a501b88e9a0130154491263a41;hb=964a3b539e335f6d70e7779630fd3d25fd38398d;hpb=f7d1229840cdae4ba22fdf375265bca4fb4a2d32 diff --git a/inc/libs/beg_functions.php b/inc/libs/beg_functions.php index 49b4beb6e6..b3622839f1 100644 --- a/inc/libs/beg_functions.php +++ b/inc/libs/beg_functions.php @@ -54,11 +54,11 @@ function addPointsBeg ($userid, $points) { // Add points to account // @TODO Try to rewrite the following unset() unset($GLOBALS['ref_level']); - $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, strtolower(getBegMode())); + $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, getBegMode()); } // Subtract begged points from member account if the admin has selected one - if (getBegUserid() > 0) { + if (isValidUserId(getBegUserid())) { // Subtract from this account subtractPoints('beg_payout', getBegUserid(), $points); } // END - if