UPDATE_REF_COUNTER($rid);
// Ok, write the ref-points to this user and his parent-ref
- unset($DEPTH);
+ unset($GLOBALS['ref_level']);
// Shall I "pay" the referal points imidiately?
if (getConfig('ref_payout') == "0") {
} // END - if
// Add one-time referal bonus over referal system or directly
- unset($DEPTH);
+ unset($GLOBALS['ref_level']);
ADD_POINTS_REFSYSTEM("referal_bonus", $rid, getConfig('points_ref'), true, bigintval($uid), $locked, getConfig('reg_points_mode'));
} // END - if
} // END - if