OSDN Git Service

FIX: bug in version compare when checking for newer version on Admin page
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 11 Aug 2009 13:11:00 +0000 (13:11 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 11 Aug 2009 13:11:00 +0000 (13:11 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1048 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/ADMIN.php

index b8ef539..3e86c89 100755 (executable)
@@ -5225,7 +5225,7 @@ selector();
                 $newestVersion = getLatestVersion();\r
                 $newestCompare = str_replace('/','.',$newestVersion);\r
                 $currentVersion = str_replace(array('/','v'),array('.',''),$nucleus['version']);\r
-                if ($newestVersion && version_compare($newestCompare,$currentVersion)) {\r
+                if ($newestVersion && version_compare($newestCompare,$currentVersion) > 0) {\r
                     echo '<br /><a style="color:red" href="http://nucleuscms.org/upgrade.php" title="'._ADMIN_SYSTEMOVERVIEW_LATESTVERSION_TITLE.'">'._ADMIN_SYSTEMOVERVIEW_LATESTVERSION_TEXT.$newestVersion.'</a>';\r
                 }\r
             } else {\r