1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-01-16 18:48:14 +01:00

Update CHttpGet.php for php 8.1 deprecated notice

This commit is contained in:
niciz 2022-11-08 12:23:07 +01:00 committed by GitHub
parent 80cd4e092f
commit 3d7adcdbde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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