9b45ff0a by Jonille Arreglo

17459_pci

1 parent 5ceda9b9
...@@ -156,10 +156,12 @@ class FlagManager { ...@@ -156,10 +156,12 @@ 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 if(isset($_GET[$flag['name']])){
159 setcookie($flag['name'], null, time() + (86400 * 30), "/"); 160 setcookie($flag['name'], null, time() + (86400 * 30), "/");
160 setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/"); 161 setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/");
161 } 162 }
162 } 163 }
164 }
163 165
164 private function filterFlag($flag, $needle, $defaultValue){ 166 private function filterFlag($flag, $needle, $defaultValue){
165 $this->checkDir(); 167 $this->checkDir();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!