Skip to content
Snippets Groups Projects
Commit 359de8d9 authored by Alex Barth's avatar Alex Barth
Browse files

Fix notices.

parent 5a72e9aa
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,10 @@ class FeedsHTTPFetcher extends FeedsFetcher { ...@@ -172,7 +172,10 @@ class FeedsHTTPFetcher extends FeedsFetcher {
* Encode basic authentication credentials in URL depending on configuration. * Encode basic authentication credentials in URL depending on configuration.
*/ */
protected function basicAuth($url, $source_config = array()) { protected function basicAuth($url, $source_config = array()) {
if ($this->config['basic_auth'] == FEEDS_HTTP_BASIC_AUTH_PER_SOURCE) { if (!isset($this->config['basic_auth'])) {
return $url;
}
elseif ($this->config['basic_auth'] == FEEDS_HTTP_BASIC_AUTH_PER_SOURCE) {
if (!empty($source_config['basic_auth_user']) && !empty($source_config['basic_auth_password'])) { if (!empty($source_config['basic_auth_user']) && !empty($source_config['basic_auth_password'])) {
return $this->basicAuthEncodeCredentials($url, $source_config['basic_auth_user'], $source_config['basic_auth_password']); return $this->basicAuthEncodeCredentials($url, $source_config['basic_auth_user'], $source_config['basic_auth_password']);
} }
......
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