- replaced last two $current occurences with $_SESSION['current']
This commit is contained in:
@@ -269,7 +269,7 @@ if($appId && !$versionId)
|
||||
apidb_sidebar_add("vote_menu");
|
||||
|
||||
// show Admin Menu
|
||||
if(loggedin() && (havepriv("admin") || $current->ownsApp($appId)))
|
||||
if(loggedin() && (havepriv("admin") || $_SESSION['current']->ownsApp($appId)))
|
||||
apidb_sidebar_add("admin_menu");
|
||||
|
||||
// header
|
||||
|
||||
@@ -72,7 +72,7 @@ if($_REQUEST['maintainReason'])
|
||||
$query = "INSERT INTO appMaintainerQueue VALUES (null, '".
|
||||
addslashes($_REQUEST['appId'])."', '".
|
||||
addslashes($_REQUEST['versionId'])."', '".
|
||||
addslashes($current->userid)."', '".
|
||||
addslashes($_SESSION['current']->userid)."', '".
|
||||
addslashes($_REQUEST['maintainReason'])."', '".
|
||||
addslashes($_REQUEST['superMaintainer'])."',".
|
||||
"NOW()".");";
|
||||
|
||||
Reference in New Issue
Block a user