mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 22:08:45 +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');
|
$to_or = array($column.' IS NULL');
|
||||||
foreach((array) $values as $value)
|
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).')';
|
return '('.implode(' OR ', $to_or).')';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user