Skip to content
Snippets Groups Projects
Commit af58301f authored by chilic's avatar chilic Committed by Chris Leppanen
Browse files

Issue #2150989 by chilic | osopolar: SimpleTest fails: Undefined index:...

Issue #2150989 by chilic | osopolar: SimpleTest fails: Undefined index: content-type, Notice file: http_request.inc Line: 57.
parent 13837134
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ function http_request_get_common_syndication($url, $settings = NULL) { ...@@ -54,7 +54,7 @@ function http_request_get_common_syndication($url, $settings = NULL) {
// @see http_request_get. // @see http_request_get.
$downloaded_string = $download->data; $downloaded_string = $download->data;
// If this happens to be a feed then just return the url. // If this happens to be a feed then just return the url.
if (http_request_is_feed($download->headers['content-type'], $downloaded_string)) { if (isset($download->headers['content-type']) && http_request_is_feed($download->headers['content-type'], $downloaded_string)) {
return $url; return $url;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment