Permalink
Browse files

Remove pointless comparison.

  • Loading branch information...
markstory committed Feb 12, 2012
1 parent ab09229 commit ad09b910ee27fadc0c3bcfe94c94ecc0c65dfd7f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Component/CookieComponent.php
@@ -484,7 +484,7 @@ protected function _implode(array $array) {
*/
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;
}

0 comments on commit ad09b91

Please sign in to comment.