diff options
| author | 2023-04-05 22:28:34 +0200 | |
|---|---|---|
| committer | 2023-04-05 22:28:34 +0200 | |
| commit | 4f078958b5603900592e14f9f3189bbebfc81bab (patch) | |
| tree | 95cac533a26c018bf965c2c2a75f18670ff17959 /p/f.php | |
| parent | 3f1695db039101d44d611f0d1781d1ba034034dd (diff) | |
Fix phpstan level 9 error for f.php and lib/favicons.php (#5263)
* Fix phpstan level 9 error
* Fix phpstan level 9 error
* Remarque's from Alkarex
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Diffstat (limited to 'p/f.php')
| -rw-r--r-- | p/f.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -32,6 +32,10 @@ if ($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (mt // no ico file or we should download a new one. $url = file_get_contents($txt); + if ($url === false) { + show_default_favicon(1800); + exit(); + } if (!download_favicon($url, $ico)) { // Download failed if ($ico_mtime == false) { |
