From c24c1049dde209ec682cae2267aeb37d095fda2c Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 5 Sep 2022 08:42:13 +0200 Subject: [PATCH] fix PHP Fatal Error: Call to undefined function each() --- doc/rpm-build/checkout-build-archives.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rpm-build/checkout-build-archives.php b/doc/rpm-build/checkout-build-archives.php index 2378b68a11..139d3c4263 100755 --- a/doc/rpm-build/checkout-build-archives.php +++ b/doc/rpm-build/checkout-build-archives.php @@ -616,7 +616,7 @@ function do_editchangelog() $revision = null; if (substr($branch_url, -4) == '.git') { - list($path) = each($modules); + $path = key($modules); $changelog .= get_changelog_from_git($path, $config['editchangelog'], $last_tag); } else