We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56640ae commit fa691c2Copy full SHA for fa691c2
2 files changed
modules/aggiornamenti/src/UpdateHook.php
@@ -45,7 +45,7 @@ public function response()
45
{
46
$update = $this->getCache()->content[0];
47
if (!empty($update)) {
48
- if (version_compare($update,\Update::getVersion()) < 0 || empty(setting('Attiva aggiornamenti'))) {
+ if (version_compare($update, \Update::getVersion()) <= 0 || empty(setting('Attiva aggiornamenti'))) {
49
$update = null;
50
}
51
modules/aggiornamenti/src/UpdateHookTask.php
@@ -44,7 +44,7 @@ public function execute()
44
$version[1] = !empty($api['prerelease']) ? 'beta' : 'stabile';
$current = \Update::getVersion();
- if (version_compare($current, $version[0]) < 0) {
+ if (version_compare($current, $version[0]) <= 0) {
$update = $version[0];
0 commit comments