bug 1275: Fix #1275 bug-1275
authorMichael Tänzer <neo@nhng.de>
Tue, 29 Apr 2014 21:20:10 +0000 (23:20 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 29 Apr 2014 21:20:10 +0000 (23:20 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/account.php

index 7e9ee2a..7e047be 100644 (file)
@@ -2447,9 +2447,9 @@ function buildSubjectFromSession() {
        {
                csrf_check('orgadmadd');
                if($_SESSION['profile']['orgadmin'] == 1)
-                       $masteracc = $_SESSION['_config'][masteracc] = intval($_REQUEST['masteracc']);
+                       $masteracc = $_SESSION['_config']['masteracc'] = intval($_REQUEST['masteracc']);
                else
-                       $masteracc = $_SESSION['_config'][masteracc] = 0;
+                       $masteracc = $_SESSION['_config']['masteracc'] = 0;
                $_REQUEST['email'] = $_SESSION['_config']['email'] = mysql_real_escape_string(stripslashes(trim($_REQUEST['email'])));
                $OU = $_SESSION['_config']['OU'] = mysql_real_escape_string(stripslashes(trim($_REQUEST['OU'])));
                $comments = $_SESSION['_config']['comments'] = mysql_real_escape_string(stripslashes(trim($_REQUEST['comments'])));