]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/beg_functions.php
Variable rewritten to ['ref_level'] to avoid trouble with referal system
[mailer.git] / inc / libs / beg_functions.php
index 04db5702d15d147ac96b41750fd3a46766c18a23..7eeb42072aee47488c02c9db1c4a48490499689d 100644 (file)
@@ -52,7 +52,7 @@ function BEG_ADD_POINTS ($uid, $points) {
                        array($points, $uid), __FILE__, __LINE__);
        } else {
                // Add points to account
                        array($points, $uid), __FILE__, __LINE__);
        } else {
                // Add points to account
-               unset($DEPTH);
+               unset($GLOBALS['ref_level']);
                ADD_POINTS_REFSYSTEM("beg", $uid, $points, false, "0", $locked, strtolower(getConfig('beg_mode')));
        }
 
                ADD_POINTS_REFSYSTEM("beg", $uid, $points, false, "0", $locked, strtolower(getConfig('beg_mode')));
        }