mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Remove pointless comparison.
This commit is contained in:
parent
ab09229d40
commit
ad09b910ee
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ class CookieComponent extends Component {
|
|||
*/
|
||||
protected function _explode($string) {
|
||||
$first = substr($string, 0, 1);
|
||||
if ($first !== false && $first === '{' || $first === '[') {
|
||||
if ($first === '{' || $first === '[') {
|
||||
$ret = json_decode($string, true);
|
||||
return ($ret != null) ? $ret : $string;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue