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