mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
Favicon array bug
Case problem and isset check
This commit is contained in:
1 parent
4862652585
commit
f3696784ea
2 files changed
+3
-2
No files matched your search
@@ -15,7 +15,8 @@ class DataAccess {
|
||||
|
||||
public function retrieveHeader($url) {
|
||||
$this->set_context();
|
||||
return @get_headers($url, TRUE);
|
||||
$headers = @get_headers($url, 1);
|
||||
return array_change_key_case($headers);
|
||||
}
|
||||
|
||||
public function saveCache($file, $data) {
|
||||
|
||||
@@ -99,7 +99,7 @@ class Favicon
|
||||
switch ($status) {
|
||||
case '301':
|
||||
case '302':
|
||||
$url = $headers['Location'];
|
||||
$url = isset($headers['location']) ? $headers['location'] : '';
|
||||
break;
|
||||
default:
|
||||
$loop = FALSE;
|
||||
|
||||
Reference in new issue
Block a user