@@ -86,15 +86,17 @@ discard block |
||
| 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 |
||
| 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); |