Do not use each() anymore (breaks on PHP 8)
[phorkie.git] / www / setup.php
index 909306f06e179051dc841e25d35feb2bb6f24587..634a11aa539653ad89f16ffef39331128a949546 100644 (file)
@@ -99,7 +99,7 @@ HTM;
 if (array_sum($GLOBALS['phorkie']['cfgfiles']) == 0) {
     //no config file loaded
     reset($GLOBALS['phorkie']['cfgfiles']);
-    list($cfgFilePath, ) = each($GLOBALS['phorkie']['cfgfiles']);
+    $cfgFilePath = key($GLOBALS['phorkie']['cfgfiles']);
 
     $cfgFilePath = Tools::foldPath($cfgFilePath);
     $cfgFileTemplate = htmlspecialchars(