mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
fix query to work with Postgres: string literals need single quotes not double
This commit is contained in:
parent
9da3a90a96
commit
bfade1bbbc
@ -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).')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user