From 9f204a7cac15a8bbd0e149cf3e633278f3847ce5 Mon Sep 17 00:00:00 2001 From: frytimo Date: Thu, 7 Dec 2023 21:38:57 -0400 Subject: [PATCH] move explode of $line inside of if block to fix php warning for line 93 (#6842) --- resources/classes/event_socket.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }