From 6ca4c785c14c90409c7cfbc78c90cbda8e9eedd3 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 15 Nov 2025 13:45:29 +0100 Subject: [PATCH] fix comparision of versions --- utils/Commands/DownloadextensionCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/Commands/DownloadextensionCommand.php b/utils/Commands/DownloadextensionCommand.php index 3aaebf2a5..1e31d410d 100644 --- a/utils/Commands/DownloadextensionCommand.php +++ b/utils/Commands/DownloadextensionCommand.php @@ -89,7 +89,7 @@ class DownloadextensionCommand extends Command $output->writeln(sprintf("Downloaded extension file '%s'", $extversions[$extversion]['filename'])); if (!$noupload) { if ($extconfs[$extname]) { - if (\Seeddms\Seeddms\ExtensionMgr::cmpVersion($extconfs[$extname]['version'], $extversion)) { + if (\Seeddms\Seeddms\ExtensionMgr::cmpVersion($extconfs[$extname]['version'], $extversion) > 0) { $helper = new QuestionHelper(); $question = new ConfirmationQuestion(sprintf("You are updating extension '%s' with an older version %s < %s. Do you want to proceed? ", $extname, $extversion, $extconfs[$extname]['version']), false); if (!$helper->ask($input, $output, $question)) {