Updated checks for exactly false.

Fixed some issue withe the sanity checks if the cache results.
This commit is contained in:
Josh Sherman 2013-09-15 23:32:34 -04:00
parent 919ad37717
commit 38e5173823

View file

@ -441,7 +441,7 @@ class Model extends Object
$cached = $this->cache->get($cache_keys); $cached = $this->cache->get($cache_keys);
$partial_cache = array(); $partial_cache = array();
if ($cached) if ($cached !== false)
{ {
foreach ($cached as $record) foreach ($cached as $record)
{ {
@ -494,7 +494,7 @@ class Model extends Object
$cached = $this->cache->get($cache_keys); $cached = $this->cache->get($cache_keys);
$partial_cache = array(); $partial_cache = array();
if ($cached) if ($cached !== false)
{ {
foreach ($cached as $record) foreach ($cached as $record)
{ {
@ -596,7 +596,7 @@ class Model extends Object
$cached = $this->cache->get($cache_key); $cached = $this->cache->get($cache_key);
} }
if (isset($cached) && $cached) if (isset($cached) && $cached !== false)
{ {
$this->records = $cached; $this->records = $cached;
} }