diff options
| author | 2017-03-02 23:10:36 +0100 | |
|---|---|---|
| committer | 2017-03-02 23:10:36 +0100 | |
| commit | 59dfc64512372eaba7609d84500d943bb7274399 (patch) | |
| tree | dfbbe7206fb2a31236609cce2d06a34bd886582a /lib | |
| parent | 992a811df66de7be66c64d3703e854c15a58d337 (diff) | |
Fix favicon warning
https://github.com/FreshRSS/FreshRSS/issues/1445
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Favicon/DataAccess.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Favicon/DataAccess.php b/lib/Favicon/DataAccess.php index ae7509881..838df66c3 100644 --- a/lib/Favicon/DataAccess.php +++ b/lib/Favicon/DataAccess.php @@ -16,7 +16,7 @@ class DataAccess { public function retrieveHeader($url) { $this->set_context(); $headers = @get_headers($url, 1); - return $headers ? array_change_key_case($headers) : array(); + return is_array($headers) ? array_change_key_case($headers) : array(); } public function saveCache($file, $data) { |
