Skip to content

Commit

Permalink
Add fix for contains()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Narloch committed Jan 11, 2017
1 parent e866b62 commit 0fc1832
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions libraries/joomla/cache/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,7 @@ public function contains($id, $group = null)
// Get the default group
$group = $group ?: $this->_options['defaultgroup'];

// Get the storage
$handler = $this->_getStorage();

if (!($handler instanceof Exception))
{
return $handler->contains($id, $group);
}

return false;
return $this->_getStorage()->contains($id, $group);
}

/**
Expand Down

0 comments on commit 0fc1832

Please sign in to comment.