mirror of
https://github.com/mosbth/cimage.git
synced 2025-01-17 02:58:15 +01:00
Update CHttpGet.php for php 8.1 deprecated notice
This commit is contained in:
parent
80cd4e092f
commit
3d7adcdbde
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user