diff options
| author | 2017-03-05 01:05:42 +0100 | |
|---|---|---|
| committer | 2017-03-05 01:05:42 +0100 | |
| commit | 6102489d579293a837e29c0056db887ac0c170ca (patch) | |
| tree | 7382d29d65ea1e83e981ab1386c0f5c455033eb1 /lib | |
| parent | f6148e1f32548f98401de3676e07d3be5e7c5331 (diff) | |
Fix Favicon library warning
https://github.com/Alkarex/FreshRSS/commit/59dfc64512372eaba7609d84500d943bb7274399
https://github.com/FreshRSS/FreshRSS/issues/1445#issuecomment-284176492
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Favicon/Favicon.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Favicon/Favicon.php b/lib/Favicon/Favicon.php index 1912050d6..8571a1b95 100644 --- a/lib/Favicon/Favicon.php +++ b/lib/Favicon/Favicon.php @@ -89,6 +89,9 @@ class Favicon $loop = TRUE; while ($loop && $max_loop-- > 0) { $headers = $this->dataAccess->retrieveHeader($url); + if (empty($headers)) { + return false; + } $exploded = explode(' ', $headers[0]); if( !isset($exploded[1]) ) { |
