Skip to content

Commit

Permalink
Avoid errors in the logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Apr 17, 2014
1 parent 5cbc4ec commit ac3f50d
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -114,10 +114,12 @@ public function get($key)
return false;
}

if ($this->_mask & self::LZ4) {
$data = @horde_lz4_uncompress($data);
} elseif ($this->_mask & self::LZF) {
$data = @lzf_decompress($data);
if ($data) {
if ($this->_mask & self::LZ4) {
$data = @horde_lz4_uncompress($data);
} elseif ($this->_mask & self::LZF) {
$data = @lzf_decompress($data);
}
}

return ($data === false)
Expand Down

0 comments on commit ac3f50d

Please sign in to comment.