- 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:
@@ -222,7 +222,6 @@ class User {
|
||||
*/
|
||||
function is_maintainer($appId, $versionId)
|
||||
{
|
||||
global $current;
|
||||
if(!loggedin() || !$this->userid)
|
||||
return false;
|
||||
|
||||
@@ -297,9 +296,7 @@ class User {
|
||||
|
||||
function loggedin()
|
||||
{
|
||||
global $current;
|
||||
|
||||
if($current && $current->userid)
|
||||
if(isset($_SESSION['current']) && $_SESSION['current']->userid)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user