]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix versioning check
authorFrank Karlitschek <frank@owncloud.org>
Tue, 9 Apr 2013 11:13:52 +0000 (13:13 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Tue, 9 Apr 2013 11:13:52 +0000 (13:13 +0200)
lib/installer.php

index 251d115b76c9ae297cf089cf832ef90f70c6e796..4ddfd17660d52260f127d5b5e60a86f2857aaf21 100644 (file)
@@ -135,7 +135,7 @@ class OC_Installer{
 
                // check if the app is compatible with this version of ownCloud
                $version=OC_Util::getVersion();
-               if(!isset($info['require']) or ($version[0]>$info['require'])) {
+               if(!isset($info['require']) or !OC_App::isAppVersionCompatible($version, $info['require'])) {
                        OC_Log::write('core',
                                'App can\'t be installed because it is not compatible with this version of ownCloud',
                                OC_Log::ERROR);