From e507198cc3bd8402aba532dbe6315f7b750c19e7 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Mon, 25 Apr 2011 14:16:12 +0200 Subject: [PATCH] Do not populate the 'arguments' property if commands received with MONITOR do not carry an argument list. --- lib/Predis/MonitorContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Predis/MonitorContext.php b/lib/Predis/MonitorContext.php index 9266476c..e1f4fbed 100644 --- a/lib/Predis/MonitorContext.php +++ b/lib/Predis/MonitorContext.php @@ -76,7 +76,7 @@ class MonitorContext implements \Iterator { 'timestamp' => (float) $timestamp, 'database' => $database, 'command' => substr($command, 1, -1), - 'arguments' => $arguments ?: '', + 'arguments' => $arguments, ); } }