From: Arthur Schiwon Date: Thu, 1 Aug 2013 14:45:14 +0000 (+0200) Subject: fix logical mistake in version comparison X-Git-Tag: v5.0.10~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4369dfe43f968e0c017c8a4963d754b6746cc5ae;p=nextcloud-server.git fix logical mistake in version comparison --- diff --git a/lib/db.php b/lib/db.php index 0a827d032a5..282b53d9a40 100644 --- a/lib/db.php +++ b/lib/db.php @@ -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