From 5e665b32f2bdd67b718c79de406758d7e683a010 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 15 Mar 2010 00:41:44 -0400 Subject: [PATCH] Removing useless condition in DboSource::cacheMethod() --- cake/libs/model/datasources/dbo_source.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;