update
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -191,7 +191,7 @@ class FlagManager { | ... | @@ -191,7 +191,7 @@ class FlagManager { |
| 191 | if(!empty($_COOKIE[$flag['encrypted_name']])) return $this->filterFlag($flag, $_COOKIE[$flag['encrypted_name']], $defaultValue); | 191 | if(!empty($_COOKIE[$flag['encrypted_name']])) return $this->filterFlag($flag, $_COOKIE[$flag['encrypted_name']], $defaultValue); |
| 192 | } | 192 | } |
| 193 | $flagName = $flag['is_encrypted'] ? $flag['encrypted_name'] : $flag['name']; | 193 | $flagName = $flag['is_encrypted'] ? $flag['encrypted_name'] : $flag['name']; |
| 194 | return !empty($_GET[$flagName]) ? $this->filterFlag($flag, $_GET[$flagName], $defaultValue) : (!empty($_COOKIE[$flag['encrypted_name']]) ? $this->filterFlag($flag, $_COOKIE[$flag['encrypted_name']], $defaultValue) : $defaultValue); | 194 | return !empty($_GET[$flagName]) ? $this->filterFlag($flag, $_GET[$flagName], $defaultValue) : (!empty($_COOKIE[$flag['encrypted_name']]) ? $this->filterFlag($flag, $_COOKIE[$flag['encrypted_name']], $defaultValue) : array('value' => $defaultValue, 'cookie_value' => $defaultValue )); |
| 195 | } | 195 | } |
| 196 | 196 | ||
| 197 | public function getFlag($flag, $encrypted){ | 197 | public function getFlag($flag, $encrypted){ | ... | ... |
-
Please register or sign in to post a comment