Browse code

unneeded variable

Bernd Wurst authored on18/07/2018 12:55:40
Showing1 changed files
... ...
@@ -70,7 +70,6 @@ else
70 70
         header('Location: account');
71 71
     }
72 72
 } elseif ($_GET['action'] == 'edit') {
73
-    $error = false;
74 73
     check_form_token('systemuser_edit');
75 74
     $account = null;
76 75
     if ($role & ROLE_CUSTOMER) {
... ...
@@ -104,7 +103,7 @@ else
104 103
     }
105 104
 
106 105
     set_account_details($account);
107
-    if (! ($debugmode || $error)) {
106
+    if (! ($debugmode)) {
108 107
         $location = 'myaccount';
109 108
         if ($_SESSION['role'] & ROLE_CUSTOMER) {
110 109
             $location = 'account';