From 655e532ed4fed89dc128b6b431da412091bf31fd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 1 Dec 2016 12:59:53 +0100 Subject: [PATCH] fix SQL error when Db->Type is not "mysql", as it should be, but eg. "mysqli" and therefore PostgesSQL SIMILAR is used with MySQL/MariaDB --- admin/inc/class.admin_acl.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.admin_acl.inc.php b/admin/inc/class.admin_acl.inc.php index 52d582b25e..517c6cd7f2 100644 --- a/admin/inc/class.admin_acl.inc.php +++ b/admin/inc/class.admin_acl.inc.php @@ -171,7 +171,7 @@ class admin_acl case 'other': //$query['col_filter'][] = "acl_location!='run'"; // remove everything not an account-id in location, like category based acl - if ($GLOBALS['egw']->db->Type == 'mysql') + if (substr($GLOBALS['egw']->db->Type, 0, 5) == 'mysql') { $query['col_filter'][] = "acl_location REGEXP '^-?[0-9]+$'"; }