Skip to content
Permalink
Browse files

Add array cast for method_cache data.

Fixes #4186
  • Loading branch information...
markstory committed Sep 3, 2014
1 parent 9c2a25d commit 638d2ea7b6d8641d1a3b4579060786c545aa2278
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/DboSource.php
@@ -776,7 +776,7 @@ public function cacheMethod($method, $key, $value = null) {
return $value;
}
if (!$this->_methodCacheChange && empty(self::$methodCache)) {
self::$methodCache = Cache::read('method_cache', '_cake_core_');
self::$methodCache = (array)Cache::read('method_cache', '_cake_core_');
}
if ($value === null) {
return (isset(self::$methodCache[$method][$key])) ? self::$methodCache[$method][$key] : null;

0 comments on commit 638d2ea

Please sign in to comment.
You can’t perform that action at this time.