]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix MariaDB/MySQL version check 20590/head
authorJ0WI <J0WI@users.noreply.github.com>
Tue, 21 Apr 2020 20:29:24 +0000 (22:29 +0200)
committerJ0WI <J0WI@users.noreply.github.com>
Tue, 21 Apr 2020 20:37:36 +0000 (22:37 +0200)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
lib/private/Setup/MySQL.php

index 0d180796986c89feef08a61fece3407a71e6b351..5c0e0c84f8ca814f73654568800aa364106fee67 100644 (file)
@@ -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']));
                        }