diff --git a/scripts/config.php b/scripts/config.php
index f464f8c..72cfb8a 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -313,6 +313,12 @@ if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
die();
}
+// have to get the config again after we change the variables, so the UI reflects the changes too
+if (file_exists($home.'/BirdNET-Pi/scripts/thisrun.txt')) {
+ $config = parse_ini_file($home.'/BirdNET-Pi/scripts/thisrun.txt');
+} elseif (file_exists($home.'/BirdNET-Pi/scripts/thisrun.ini')) {
+ $config = parse_ini_file($home.'/BirdNET-Pi/scripts/thisrun.ini');
+}
?>