Skip to content

Commit

Permalink
A bit cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 28, 2014
1 parent 84f940a commit 48367d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/Cache/lib/Horde/Cache/Storage/Hashtable.php
Expand Up @@ -51,11 +51,11 @@ public function __construct(array $params = array())
*/
protected function _initOb()
{
$this->_hash = $this->_params['hashtable'];

if (isset($this->_params['prefix'])) {
$this->_hash = clone $this->_hash;
$this->_hash = clone $this->_params['hashtable'];
$this->_hash->prefix = $this->_params['prefix'];
} else {
$this->_hash = $this->_params['hashtable'];
}
}

Expand Down

0 comments on commit 48367d7

Please sign in to comment.