- 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:
@@ -33,7 +33,7 @@ if(!$result || mysql_num_rows($result) == 0)
|
||||
}
|
||||
|
||||
//display admin menu
|
||||
if(loggedin() && (havepriv("admin") || $current->ownsApp($appId))) {
|
||||
if(loggedin() && (havepriv("admin") || $_SESSION['current']->ownsApp($appId))) {
|
||||
apidb_sidebar_add("admin_menu");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user