1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-23 17:51:34 +02:00

Merge pull request #188 from niciz/patch-1

Update CHttpGet.php for php 8.1 deprecated notice
This commit is contained in:
Mikael Roos
2022-11-08 13:50:12 +01:00
committed by GitHub

View File

@@ -215,7 +215,7 @@ class CHttpGet
{ {
$type = isset($this->response['header']['Content-Type']) $type = isset($this->response['header']['Content-Type'])
? $this->response['header']['Content-Type'] ? $this->response['header']['Content-Type']
: null; : '';
return preg_match('#[a-z]+/[a-z]+#', $type) return preg_match('#[a-z]+/[a-z]+#', $type)
? $type ? $type