bugfix: missing brackets
Bernd Wurst

Bernd Wurst commited on 2012-03-30 17:42:33
Zeige 3 geänderte Dateien mit 8 Einfügungen und 4 Löschungen.

... ...
@@ -36,8 +36,9 @@ if (isset($_GET['clear']))
36 36
 $username = NULL;
37 37
 if ($_SESSION['role'] & ROLE_SYSTEMUSER) {
38 38
   $username = $_SESSION['userinfo']['username'];
39
-  if (isset($_SESSION['subuser']))
39
+  if (isset($_SESSION['subuser'])) {
40 40
     $username = $_SESSION['subuser'];
41
+  }
41 42
 } elseif ($_SESSION['role'] & ROLE_VMAIL_ACCOUNT) {
42 43
   $username = $_SESSION['mailaccount'];
43 44
 }
... ...
@@ -42,8 +42,9 @@ elseif ($_GET['action'] == 'delete')
42 42
   $username = NULL;
43 43
   if ($_SESSION['role'] & ROLE_SYSTEMUSER) {
44 44
     $username = $_SESSION['userinfo']['username'];
45
-    if (isset($_SESSION['subuser']))
45
+    if (isset($_SESSION['subuser'])) {
46 46
       $username = $_SESSION['subuser'];
47
+    }
47 48
   } elseif ($_SESSION['role'] & ROLE_VMAIL_ACCOUNT) {
48 49
     $username = $_SESSION['mailaccount'];
49 50
   }
... ...
@@ -70,9 +70,10 @@ function add_clientcert($certdata, $dn, $issuer, $startpage='')
70 70
   if ($_SESSION['role'] & ROLE_SYSTEMUSER) {
71 71
     $type = 'user';
72 72
     $username = mysql_real_escape_string($_SESSION['userinfo']['username']);
73
-    if (isset($_SESSION['subuser']))
73
+    if (isset($_SESSION['subuser'])) {
74 74
       $username = mysql_real_escape_string($_SESSION['subuser']);
75 75
       $type = 'subuser';
76
+    }
76 77
   } elseif ($_SESSION['role'] & ROLE_VMAIL_ACCOUNT) {
77 78
     $type = 'email';
78 79
     $username = mysql_real_escape_string($_SESSION['mailaccount']);
... ...
@@ -107,9 +108,10 @@ function delete_clientcert($id)
107 108
   if ($_SESSION['role'] & ROLE_SYSTEMUSER) {
108 109
     $type = 'user';
109 110
     $username = mysql_real_escape_string($_SESSION['userinfo']['username']);
110
-    if (isset($_SESSION['subuser']))
111
+    if (isset($_SESSION['subuser'])) {
111 112
       $username = mysql_real_escape_string($_SESSION['subuser']);
112 113
       $type = 'subuser';
114
+    }
113 115
   } elseif ($_SESSION['role'] & ROLE_VMAIL_ACCOUNT) {
114 116
     $type = 'email';
115 117
     $username = mysql_real_escape_string($_SESSION['mailaccount']);
116 118