From: Andrew Dolgov Date: Wed, 24 Apr 2013 06:45:44 +0000 (+0400) Subject: fetch: check if http_response_header is set X-Git-Tag: 1.7.9~25^2~104 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=37ddf5b7e76114239085badfc0b1e5f94ca32480;p=tt-rss.git fetch: check if http_response_header is set --- diff --git a/include/functions.php b/include/functions.php index 8a414aec..10a3504f 100644 --- a/include/functions.php +++ b/include/functions.php @@ -407,7 +407,7 @@ $data = @file_get_contents($url, false, $context); $fetch_last_content_type = false; // reset if no type was sent from server - if (is_array($http_response_header)) { + if (isset($http_response_header) && is_array($http_response_header)) { foreach ($http_response_header as $h) { if (substr(strtolower($h), 0, 13) == 'content-type:') { $fetch_last_content_type = substr($h, 14);