From 3d7adcdbde78e28d343e5d367689f1a301362187 Mon Sep 17 00:00:00 2001 From: niciz Date: Tue, 8 Nov 2022 12:23:07 +0100 Subject: [PATCH] Update CHttpGet.php for php 8.1 deprecated notice --- CHttpGet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHttpGet.php b/CHttpGet.php index 65f408c..4fd9bee 100644 --- a/CHttpGet.php +++ b/CHttpGet.php @@ -215,7 +215,7 @@ class CHttpGet { $type = isset($this->response['header']['Content-Type']) ? $this->response['header']['Content-Type'] - : null; + : ''; return preg_match('#[a-z]+/[a-z]+#', $type) ? $type