From da520c3d5088b573eb0377f3877bbfdda13531e4 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 3 Feb 2024 14:56:08 +0100 Subject: [PATCH] favorites: skip non-existing entries --- emhttp/plugins/dynamix/scripts/restore_favorites | 1 + 1 file changed, 1 insertion(+) diff --git a/emhttp/plugins/dynamix/scripts/restore_favorites b/emhttp/plugins/dynamix/scripts/restore_favorites index f978ca577..f046206d4 100755 --- a/emhttp/plugins/dynamix/scripts/restore_favorites +++ b/emhttp/plugins/dynamix/scripts/restore_favorites @@ -8,6 +8,7 @@ while (($page = fgets($file))!==false) { // update each favorite $page = rtrim($page); $line = fopen($page,'r'); + if ($line === false) continue; // get current Menu settings extract(parse_ini_string(fgets($line))); fclose($line);