do not use same variable for list of ext configurations and single configuration

This commit is contained in:
Uwe Steinmann 2025-11-14 10:33:12 +01:00
parent a4307a4a2c
commit 41e7c6eb93

View File

@ -60,8 +60,8 @@ class ListextensionCommand extends Command
$enabled = 0; $enabled = 0;
$disabled = 0; $disabled = 0;
$haserror = 0; $haserror = 0;
$extconf = $extmgr->getExtensionConfiguration(); $extconfs = $extmgr->getExtensionConfiguration();
foreach ($extconf as $extname=>$extconf) { foreach ($extconfs as $extname=>$extconf) {
if (!$settings->extensionIsDisabled($extname)) { if (!$settings->extensionIsDisabled($extname)) {
$enabled++; $enabled++;
$output->writeln(sprintf('<ext>'.$outformat.'</ext>', '*', $extname, $extconf['version'], $extconf['releasedate'])); $output->writeln(sprintf('<ext>'.$outformat.'</ext>', '*', $extname, $extconf['version'], $extconf['releasedate']));