fix PHP Fatal Error: Call to undefined function each()

This commit is contained in:
ralf 2022-09-05 08:42:13 +02:00
parent 7eeb72513d
commit c24c1049dd

View File

@ -616,7 +616,7 @@ function do_editchangelog()
$revision = null; $revision = null;
if (substr($branch_url, -4) == '.git') if (substr($branch_url, -4) == '.git')
{ {
list($path) = each($modules); $path = key($modules);
$changelog .= get_changelog_from_git($path, $config['editchangelog'], $last_tag); $changelog .= get_changelog_from_git($path, $config['editchangelog'], $last_tag);
} }
else else