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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user