move explode of $line inside of if block to fix php warning for line 93 (#6842)

This commit is contained in:
frytimo
2023-12-07 21:38:57 -04:00
committed by GitHub
parent 1664bef5d9
commit 9f204a7cac

View File

@@ -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;
}