- 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:
Jonathan Ernst
2004-12-10 01:11:40 +00:00
committed by WineHQ
parent bd91db228c
commit 9d5d61fbc7
3 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ include(BASE."include/"."qclass.php");
global $apidb_root;
if(!loggedin() || (!havepriv("admin") && !$current->ownsApp($appId)) )
if(!loggedin() || (!havepriv("admin") && !$_SESSION['current']->ownsApp($appId)) )
{
errorpage("Insufficient Privileges!");
exit;