diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index 37caca82f..dc41588b4 100755 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -493,10 +493,7 @@ class DboSource extends DataSource { */ function cacheMethod($method, $key, $value = null) { if ($this->cacheMethods === false) { - if ($value !== null) { - return $value; - } - return null; + return $value; } if ($value === null) { return (isset($this->methodCache[$method][$key])) ? $this->methodCache[$method][$key] : null;