unneccessary globals removed
[mailer.git] / inc / mysql-manager.php
index 34132e388bae189448c716abfa55fec39ed19e6d..da0aa7159611826a404838f107ab7fd70ba07e1f 100644 (file)
@@ -538,7 +538,7 @@ function WHAT_IS_VALID($act, $wht, $type="guest")
 //
 function IS_LOGGED_IN()
 {
-       global $_SESSION, $status, $LAST;
+       global $status, $LAST;
        if (!is_array($LAST)) $LAST = array();
        $ret = false;
 
@@ -1507,9 +1507,7 @@ function SUB_JACKPOT($points)
        }
 }
 //
-function IS_DEMO()
-{
-       global $_SESSION;
+function IS_DEMO() {
        return ((EXT_IS_ACTIVE("demo")) && ($_SESSION['admin_login'] == "demo"));
 }
 //