Skip to content

Commit c3c7d26

Browse files
committed
only alert when the new version is newer
1 parent 5d6f1c2 commit c3c7d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/lists/admin/updateLib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function checkForUpdate()
3333
}
3434
$versionString = isset($serverResponse['versionstring']) ? $serverResponse['versionstring'] : '';
3535

36-
if ($version !== '' && $version !== VERSION && version_compare(VERSION, $version) && $enabledNotification) {
36+
if ($version !== '' && $version !== VERSION && version_compare(VERSION, $version) < 0 && $enabledNotification) {
3737
$updateMessage = s('A new version of phpList is available: %s',htmlentities($versionString));
3838
} else {
3939
$updateMessage = '';

0 commit comments

Comments
 (0)