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

Commit

Permalink
Merge branch 'hotfix/4444'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Willbanks committed May 8, 2013
5 parents a8eef4b + 736bf24 + f1bdd85 + 30d927d + 2697e3e commit de4e2c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Storage/Adapter/MemcachedResourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ public function getLibOption($id, $key)
throw new Exception\RuntimeException("No resource with id '{$id}'");
}

$constValue = $this->normalizeLibOptionKey($key);
$this->normalizeLibOptionKey($key);
$resource = & $this->resources[$id];

if ($resource instanceof MemcachedResource) {
return $resource->getOption($constValue);
return $resource->getOption($key);
}

return isset($resource['lib_options'][$constValue]) ? $resource['lib_options'][$constValue] : null;
return isset($resource['lib_options'][$key]) ? $resource['lib_options'][$key] : null;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Storage/Adapter/RedisResourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,14 @@ public function getLibOption($id, $key)
throw new Exception\RuntimeException("No resource with id '{$id}'");
}

$constValue = $this->normalizeLibOptionKey($key);
$this->normalizeLibOptionKey($key);
$resource = & $this->resources[$id];

if ($resource instanceof RedisResource) {
return $resource->getOption($constValue);
return $resource->getOption($key);
}

return isset($resource['lib_options'][$constValue]) ? $resource['lib_options'][$constValue] : null;
return isset($resource['lib_options'][$key]) ? $resource['lib_options'][$key] : null;
}

/**
Expand Down

0 comments on commit de4e2c8

Please sign in to comment.