fix query to work with Postgres: string literals need single quotes not double

This commit is contained in:
Ralf Becker 2014-06-25 09:23:21 +00:00
parent 9da3a90a96
commit bfade1bbbc

View File

@ -112,7 +112,7 @@ class egw_customfields implements IteratorAggregate
$to_or = array($column.' IS NULL');
foreach((array) $values as $value)
{
$to_or[] = self::$db->concat('","', $column, '","').' LIKE '.self::$db->quote('%,'.$value.',%');
$to_or[] = self::$db->concat("','", $column, "','").' LIKE '.self::$db->quote('%,'.$value.',%');
}
return '('.implode(' OR ', $to_or).')';
}