mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 09:39:58 -06:00
Fix: PHP error if a favourite page no longer exists
This commit is contained in:
@@ -7,6 +7,7 @@ $file = fopen($cfg,'r');
|
||||
while (($page = fgets($file))!==false) {
|
||||
// update each favorite
|
||||
$page = rtrim($page);
|
||||
if ( ! is_file($page) ) continue;
|
||||
$line = fopen($page,'r');
|
||||
if ($line === false) continue;
|
||||
// get current Menu settings
|
||||
|
||||
Reference in New Issue
Block a user