From 4f078958b5603900592e14f9f3189bbebfc81bab Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Wed, 5 Apr 2023 22:28:34 +0200 Subject: 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 --- p/f.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'p') diff --git a/p/f.php b/p/f.php index 7837407e2..6e30b64b2 100644 --- a/p/f.php +++ b/p/f.php @@ -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) { -- cgit v1.2.3