Removing useless condition in DboSource::cacheMethod()

This commit is contained in:
Mark Story 2010-03-15 00:41:44 -04:00
parent edf2ea1e74
commit 5e665b32f2

View file

@ -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;