Mahor rewrite:
[mailer.git] / inc / libs / sponsor_functions.php
index 5c511f85a61e96b1f2ebc002d527657b07b1f2b0..b0deed1830631e2ac4f3ac56b45bfbde94b9004d 100644 (file)
@@ -445,7 +445,7 @@ function UPDATE_SPONSOR_LOGIN()
 
        // Calculate cookie lifetime, maybe we have to change this so the admin can setup a
        // seperate timeout for these two cookies?
-       $life = (time() + $_CONFIG['online_timeout']);
+       $life = (time() + getConfig('online_timeout'));
 
        // Is confirmed so both is fine and we can continue with login procedure
        $login = ((setcookie("sponsorid"  , bigintval($_COOKIE['sponsorid']), $life, COOKIE_PATH)) &&