From 10081802f6fb60e67f95a6142d0dbe86145268f4 Mon Sep 17 00:00:00 2001 From: J0WI Date: Tue, 21 Apr 2020 22:29:24 +0200 Subject: [PATCH] Fix MariaDB/MySQL version check Signed-off-by: J0WI --- lib/private/Setup/MySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php index 0d180796986..5c0e0c84f8c 100644 --- a/lib/private/Setup/MySQL.php +++ b/lib/private/Setup/MySQL.php @@ -49,7 +49,7 @@ class MySQL extends AbstractDatabase { if (version_compare($version, '10.4', '>=')) { throw new DatabaseSetupException(sprintf('Unsupported MariaDB version %s, Nextcloud 16 requires a version lower than 10.4', $row['Value'])); } - } { + } else { if (version_compare($version, '8', '>=')) { throw new DatabaseSetupException(sprintf('Unsupported MySQL version %s, Nextcloud 16 requires a version lower than 8.0', $row['Value'])); } -- 2.39.5