diff --git a/resources/classes/event_socket.php b/resources/classes/event_socket.php index 036790f04e..92c6372e86 100644 --- a/resources/classes/event_socket.php +++ b/resources/classes/event_socket.php @@ -87,11 +87,10 @@ class event_socket { if ($line === '') { break; } + list($key, $value) = explode(':', $line, 2); + $content[trim($key)] = trim($value); } - list($key, $value) = explode(':', $line, 2); - $content[trim($key)] = trim($value); - if (feof($this->fp)) { break; }