CRM-21534 fix invokation of test for MariaDB
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 9 Dec 2017 01:35:36 +0000 (12:35 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 15 Dec 2017 08:01:21 +0000 (19:01 +1100)
CRM/Utils/SQL.php

index a82614e465ff2abc66715cf49b5f39d0a98fde6c..dba0c9ebe82c11716372070d138222e07af30a7a 100644 (file)
@@ -80,7 +80,7 @@ class CRM_Utils_SQL {
     // CRM-21455 MariaDB 10.2 does not support ANY_VALUE
     $version = CRM_Core_DAO::singleValueQuery('SELECT VERSION()');
 
-    if (stripos('mariadb', $version) !== FALSE) {
+    if (stripos($version, 'mariadb') !== FALSE) {
       return FALSE;
     }