- access most globals by their $_XYZ['varname'] name
- fix some code errors and typos (missing $ in front of variable names and so on) - fixed a lot of warnings that would have been thrown when error_reporting is set to show notices (if(isset($variable))) instead of if($variable) for example)
This commit is contained in:
@@ -17,9 +17,9 @@ opendb();
|
||||
|
||||
if(loggedin())
|
||||
{
|
||||
if($current->getpref("query:hide_header") == "yes")
|
||||
if($_SESSION['current']->getpref("query:hide_header") == "yes")
|
||||
disable_header();
|
||||
if($current->getpref("query:hide_sidebar") == "yes")
|
||||
if($_SESSION['current']->getpref("query:hide_sidebar") == "yes")
|
||||
disable_sidebar();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user