Skip to content

Commit

Permalink
Added an extra check when exploding the return info string to take co…
Browse files Browse the repository at this point in the history
…mments into account. These comments are found in Redis > 2.6.0
  • Loading branch information
joelcox committed May 17, 2012
1 parent a1de0b0 commit 6f78c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public function info()
foreach ($lines as $line)
{
$parts = explode(':', $line);
$data[$parts[0]] = $parts[1];
if (isset($parts[1])) $data[$parts[0]] = $parts[1];
}

return $data;
Expand Down

0 comments on commit 6f78c1e

Please sign in to comment.