From 6da33df8e98fbf5454cef6f96a2c572ecadb50f6 Mon Sep 17 00:00:00 2001 From: frederik Date: Tue, 20 Feb 2024 10:42:35 +0100 Subject: [PATCH] fix: do not error out when disk_check_exclude.txt does not exist yet --- scripts/play.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/play.php b/scripts/play.php index 524bed5..062e326 100644 --- a/scripts/play.php +++ b/scripts/play.php @@ -465,6 +465,8 @@ if(isset($_GET['species'])){ ?> $fp = @fopen($home."/BirdNET-Pi/scripts/disk_check_exclude.txt", 'r'); if ($fp) { $disk_check_exclude_arr = explode("\n", fread($fp, filesize($home."/BirdNET-Pi/scripts/disk_check_exclude.txt"))); +} else { + $disk_check_exclude_arr = []; } $name = $_GET['species'];