File existence safety

This commit is contained in:
2020-12-26 16:55:08 +01:00
parent bf60071b83
commit 78032e1583
3 changed files with 27 additions and 13 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ class optimizer
unlink($file);
}
foreach ($library->get_storyboard_files() as $file)
foreach ($library->get_osb_files() as $file)
{
unlink($file);
}
@@ -118,7 +118,7 @@ class optimizer
$vid = $library->get_videos();
$sb = $library->get_storyboards();
$a = $library->get_audiofiles();
$sbf = $library->get_storyboard_files();
$sbf = $library->get_osb_files();
$osf = $library->get_osu_files();
$excluded = array_merge($bg, $vid, $sb, $a, $sbf, $osf);