Merge branch '17459_pci' into 'master'
17459_pci See merge request !5
Showing
1 changed file
with
4 additions
and
2 deletions
| ... | @@ -156,8 +156,10 @@ class FlagManager { | ... | @@ -156,8 +156,10 @@ class FlagManager { |
| 156 | if(!$flags) return []; | 156 | if(!$flags) return []; |
| 157 | foreach($flags as $flag){ | 157 | foreach($flags as $flag){ |
| 158 | $value = $this->checkFlag($flag, !empty($flag['default']) ? $flag['default'] : null); | 158 | $value = $this->checkFlag($flag, !empty($flag['default']) ? $flag['default'] : null); |
| 159 | setcookie($flag['name'], null, time() + (86400 * 30), "/"); | 159 | if(isset($_GET[$flag['name']])){ |
| 160 | setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/"); | 160 | setcookie($flag['name'], null, time() + (86400 * 30), "/"); |
| 161 | setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/"); | ||
| 162 | } | ||
| 161 | } | 163 | } |
| 162 | } | 164 | } |
| 163 | 165 | ... | ... |
-
Please register or sign in to post a comment