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);