diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 25c2c69df..b005a41bf 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -776,7 +776,7 @@ class DboSource extends DataSource { 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;