diff --git a/collectors/http.php b/collectors/http.php index 3a3ff33c..2541d69d 100644 --- a/collectors/http.php +++ b/collectors/http.php @@ -27,7 +27,7 @@ class QM_Collector_HTTP extends QM_DataCollector { /** * @var array> * @phpstan-var array, * filtered_trace: list>, @@ -369,7 +369,7 @@ public function process() { $this->data->ltime += $ltime; - $host = (string) parse_url( $request['url'], PHP_URL_HOST ); + $host = (string) parse_url( $request['url'] ?? '', PHP_URL_HOST ); $local = ( $host === $home_host ); $this->log_type( $type );