1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

ensure to load buildconfig from selected git sha

This commit is contained in:
andreas
2023-10-05 19:37:46 +02:00
parent 12288edbf8
commit 4af9434b29
4 changed files with 28 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ function addVars(&$vars,$names,$defaults=null){
foreach ($names as $n){
$v=null;
if (! isset($_REQUEST[$n])){
if ($defaults == null || ! isset($defaults[$n])) die("missing parameter $n");
if ($defaults == null || ! isset($defaults[$n])) throw new Exception("missing parameter $n");
$v=$defaults[$n];
}
else{