mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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) {
|
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…
Reference in a new issue