Explorar el Código

Do not populate the 'arguments' property if commands received with MONITOR do not carry an argument list.

Daniele Alessandri hace 14 años
padre
commit
e507198cc3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Predis/MonitorContext.php

+ 1 - 1
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,
         );
     }
 }