check if $extconfs[$extname] exists

This commit is contained in:
Uwe Steinmann 2025-11-16 15:50:22 +01:00
parent 239586ed87
commit 8b60aea55d

View File

@ -88,7 +88,7 @@ class DownloadextensionCommand extends Command
if ($tmpfile = $extmgr->getExtensionFromRepository($extversions[$extversion]['filename'])) {
$output->writeln(sprintf("<info>Downloaded extension file '%s'</info>", $extversions[$extversion]['filename']));
if (!$noupload) {
if ($extconfs[$extname]) {
if (isset($extconfs[$extname])) {
if (\Seeddms\Seeddms\ExtensionMgr::cmpVersion($extconfs[$extname]['version'], $extversion) > 0) {
$helper = new QuestionHelper();
$question = new ConfirmationQuestion(sprintf("<question>You are updating extension '%s' with an older version %s < %s. Do you want to proceed?</question> ", $extname, $extversion, $extconfs[$extname]['version']), false);