Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge f4719ae into 859ccf0
Browse files Browse the repository at this point in the history
  • Loading branch information
Moln committed Apr 4, 2015
2 parents 859ccf0 + f4719ae commit c06c6c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/Zend/Cache/Storage/Adapter/RedisResourceManager.php
Expand Up @@ -105,7 +105,7 @@ public function getPassword($id)
* Gets a redis resource
*
* @param string $id
* @return RedisResourceManager
* @return RedisResource
* @throws Exception\RuntimeException
*/
public function getResource($id)
Expand All @@ -119,9 +119,10 @@ public function getResource($id)
//in case new server was set then connect
if (!$resource['initialized']) {
$this->connect($resource);

$info = $resource['resource']->info();
$resource['version'] = $info['redis_version'];
}
$info = $resource['resource']->info();
$resource['version'] = $info['redis_version'];
return $resource['resource'];
}

Expand Down

0 comments on commit c06c6c0

Please sign in to comment.