Passed
Push — master ( e6c475...db71b9 )
by Darío
04:47
created
module/Workarea/Module.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,15 +86,17 @@  discard block
 block discarded – undo
86 86
         {
87 87
             case '_COOKIE':
88 88
 
89
-		        if (!array_key_exists($key, $_COOKIE) || empty($_COOKIE[$key]))
90
-		            header("location: " . $c->basePath ."/public/". "Auth");
89
+		        if (!array_key_exists($key, $_COOKIE) || empty($_COOKIE[$key])) {
90
+		        		            header("location: " . $c->basePath ."/public/". "Auth");
91
+		        }
91 92
 
92 93
                 break;
93 94
 
94 95
             case '_SESSION':
95 96
 
96
-		        if (!array_key_exists($key, $_SESSION) || empty($_SESSION[$key]))
97
-		            header("location: " . $c->basePath ."/public/". "Auth");
97
+		        if (!array_key_exists($key, $_SESSION) || empty($_SESSION[$key])) {
98
+		        		            header("location: " . $c->basePath ."/public/". "Auth");
99
+		        }
98 100
 
99 101
                 break;
100 102
         }
@@ -141,9 +143,9 @@  discard block
 block discarded – undo
141 143
 					$again = true;
142 144
 					$new_config[$param . "_" . $key] = $value;
143 145
 				}
146
+			} else {
147
+							$new_config[$param] = $configure;
144 148
 			}
145
-			else
146
-				$new_config[$param] = $configure;
147 149
 		}
148 150
 
149 151
 		return (!$again) ? $new_config : $this->toFormConfig($new_config);
Please login to merge, or discard this patch.