mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge remote-tracking branch 'origin/2.0' into 2.1
This commit is contained in:
commit
4f176d4284
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…
Reference in a new issue