summaryrefslogtreecommitdiffstats
path: root/lib/private/installer.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-07-10 17:17:55 +0200
committerGeorg Ehrke <developer@georgehrke.com>2014-07-10 17:17:55 +0200
commit305db9c2d7970510821fba1b7f39150132ebd46f (patch)
tree70a984a427fc38df0b97cfbb73518d69cece23f6 /lib/private/installer.php
parent404ac8bcd32aca8f9b004621ac737800cd86dfd1 (diff)
downloadnextcloud-server-305db9c2d7970510821fba1b7f39150132ebd46f.tar.gz
nextcloud-server-305db9c2d7970510821fba1b7f39150132ebd46f.zip
add proper version comparision in OC_Installer::isUpdateAvailable
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r--lib/private/installer.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 29470dbe3a6..f9d0b36afb4 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -377,9 +377,8 @@ class OC_Installer{
$ocsdata=OC_OCSClient::getApplication($ocsid);
$ocsversion= (string) $ocsdata['version'];
$currentversion=OC_App::getAppVersion($app);
- if($ocsversion<>$currentversion) {
+ if (version_compare($ocsversion, $currentversion, '>')) {
return($ocsversion);
-
}else{
return false;
}