bug 1138: $_SESSION['support'] is not used anywhere => remove it
authorMichael Tänzer <neo@nhng.de>
Mon, 24 Mar 2014 16:46:24 +0000 (17:46 +0100)
committerMichael Tänzer <neo@nhng.de>
Mon, 24 Mar 2014 16:46:24 +0000 (17:46 +0100)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/account.php

index d7fd43d..4e59a00 100644 (file)
@@ -3138,11 +3138,9 @@ function buildSubjectFromSession() {
        }
 
        if($id == 59){
-               if ($oldid == 43 && $_SESSION['profile']['admin'] == 1) {
-                       $_SESSION['support']=1;
-               }ELSEIF ($oldid == 13 && intval($_REQUEST['userid']) == $_SESSION['profile']['id']){
-                       $_SESSION['support']=0;
-               }ELSE{
+               if (!($oldid == 43 && $_SESSION['profile']['admin'] == 1) &&
+                   !($oldid == 13 && intval($_REQUEST['userid']) == $_SESSION['profile']['id']))
+               {
                        showheader(_("My CAcert.org Account!"));
                        echo _("You do not have access to this page.");
                        showfooter();