mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +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) {
|
protected function _explode($string) {
|
||||||
$first = substr($string, 0, 1);
|
$first = substr($string, 0, 1);
|
||||||
if ($first !== false && $first === '{' || $first === '[') {
|
if ($first === '{' || $first === '[') {
|
||||||
$ret = json_decode($string, true);
|
$ret = json_decode($string, true);
|
||||||
return ($ret != null) ? $ret : $string;
|
return ($ret != null) ? $ret : $string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue