Skip to content

Commit fa691c2

Browse files
committed
fix: notifica aggiornamento
1 parent 56640ae commit fa691c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/aggiornamenti/src/UpdateHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function response()
4545
{
4646
$update = $this->getCache()->content[0];
4747
if (!empty($update)) {
48-
if (version_compare($update,\Update::getVersion()) < 0 || empty(setting('Attiva aggiornamenti'))) {
48+
if (version_compare($update, \Update::getVersion()) <= 0 || empty(setting('Attiva aggiornamenti'))) {
4949
$update = null;
5050
}
5151
}

modules/aggiornamenti/src/UpdateHookTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function execute()
4444
$version[1] = !empty($api['prerelease']) ? 'beta' : 'stabile';
4545
$current = \Update::getVersion();
4646

47-
if (version_compare($current, $version[0]) < 0) {
47+
if (version_compare($current, $version[0]) <= 0) {
4848
$update = $version[0];
4949
}
5050
}

0 commit comments

Comments
 (0)