git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use each() anymore (breaks on PHP 8)
[phorkie.git]
/
www
/
setup.php
diff --git
a/www/setup.php
b/www/setup.php
index 909306f06e179051dc841e25d35feb2bb6f24587..634a11aa539653ad89f16ffef39331128a949546 100644
(file)
--- a/
www/setup.php
+++ b/
www/setup.php
@@
-99,7
+99,7
@@
HTM;
if (array_sum($GLOBALS['phorkie']['cfgfiles']) == 0) {
//no config file loaded
reset($GLOBALS['phorkie']['cfgfiles']);
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(
$cfgFilePath = Tools::foldPath($cfgFilePath);
$cfgFileTemplate = htmlspecialchars(