Skip to content

Commit

Permalink
Merge pull request #565 from digitalkaoz/patch-2
Browse files Browse the repository at this point in the history
fix invalid in_array
  • Loading branch information
makasim committed Feb 22, 2015
2 parents 2779907 + b04f44e commit a97b46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Imagine/Cache/Resolver/CacheResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function saveToCache($cacheKey, $content)
// Create or update the index list containing all cache keys for a given image and filter pairing.
$indexKey = $this->generateIndexKey($cacheKey);
if ($this->cache->contains($indexKey)) {
$index = $this->cache->fetch($indexKey);
$index = (array)$this->cache->fetch($indexKey);

if (!in_array($cacheKey, $index)) {
$index[] = $cacheKey;
Expand Down

0 comments on commit a97b46f

Please sign in to comment.