We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccb442f commit 9f0339eCopy full SHA for 9f0339e
install/lib/installer_base.lib.php
@@ -269,8 +269,12 @@ public function check_mysql_version() {
269
$min_mariadb_version = '10.0.5';
270
$min_mysql_version = '8.0.4';
271
272
- $rec = $this->db->queryOneRecord('SELECT VERSION() as mysql_version;');
273
- $version = (is_array($rec))? $rec['mysql_version']: '0';
+ $rec = $this->db->queryOneRecord('SELECT VERSION() as mysql_version');
+ if(is_array($rec)) {
274
+ $version = $rec['mysql_version']
275
+ } else {
276
+ die("Unable to get MySQL version\n");
277
+ }
278
279
if(strpos($version,'MariaDB')) {
280
// We have MariaDB
0 commit comments