Updated checks for exactly false.
Fixed some issue withe the sanity checks if the cache results.
This commit is contained in:
parent
919ad37717
commit
38e5173823
1 changed files with 3 additions and 3 deletions
|
@ -441,7 +441,7 @@ class Model extends Object
|
|||
$cached = $this->cache->get($cache_keys);
|
||||
$partial_cache = array();
|
||||
|
||||
if ($cached)
|
||||
if ($cached !== false)
|
||||
{
|
||||
foreach ($cached as $record)
|
||||
{
|
||||
|
@ -494,7 +494,7 @@ class Model extends Object
|
|||
$cached = $this->cache->get($cache_keys);
|
||||
$partial_cache = array();
|
||||
|
||||
if ($cached)
|
||||
if ($cached !== false)
|
||||
{
|
||||
foreach ($cached as $record)
|
||||
{
|
||||
|
@ -596,7 +596,7 @@ class Model extends Object
|
|||
$cached = $this->cache->get($cache_key);
|
||||
}
|
||||
|
||||
if (isset($cached) && $cached)
|
||||
if (isset($cached) && $cached !== false)
|
||||
{
|
||||
$this->records = $cached;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue