]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix logical mistake in version comparison
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 1 Aug 2013 14:45:14 +0000 (16:45 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 1 Aug 2013 14:45:14 +0000 (16:45 +0200)
lib/db.php

index 0a827d032a5c0bbed7ebc1ea918d9075c546f10f..282b53d9a404b518020b4eaa5f56180f38490af1 100644 (file)
@@ -589,7 +589,7 @@ class OC_DB {
                        self::$schema->db->database_name=self::$schema->db->dsn['username'];
 
                        $installedVersion = \OC_Config::getValue('version', '0.0.0');
-                       if (version_compare('5.0.15', $installedVersion, '<=')) {
+                       if (version_compare($installedVersion, '5.0.15', '<=')) {
                                //configvalue in oc_appconfig must be allowed to contain NULL
                                //because it is a CLOB, we need to move heaven and earth a bit
                                //i.e. rename it and copy values