diff --git a/CRM/Utils/SQL.php b/CRM/Utils/SQL.php index a82614e465ff..dba0c9ebe82c 100644 --- a/CRM/Utils/SQL.php +++ b/CRM/Utils/SQL.php @@ -80,7 +80,7 @@ public static function supportsFullGroupBy() { // 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; }