mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
Use db->quote to get good cross db comparisons
This commit is contained in:
parent
0b38159c94
commit
afafbec708
@ -398,13 +398,14 @@ class calendar_so
|
|||||||
// this is only used, when we cannot use UNIONS
|
// this is only used, when we cannot use UNIONS
|
||||||
if (!$useUnionQuery) $where[] = '('.implode(' OR ',$to_or).')';
|
if (!$useUnionQuery) $where[] = '('.implode(' OR ',$to_or).')';
|
||||||
|
|
||||||
if($filter != 'deleted') {
|
if($filter != 'deleted')
|
||||||
$where[] = "!cal_deleted";
|
{
|
||||||
|
$where[] = 'cal_deleted='.$this->db->quote(false,'bool');
|
||||||
}
|
}
|
||||||
switch($filter)
|
switch($filter)
|
||||||
{
|
{
|
||||||
case 'deleted':
|
case 'deleted':
|
||||||
$where[] = "cal_deleted"; break;
|
$where[] = 'cal_deleted='.$this->db->quote(true,'bool');
|
||||||
case 'unknown':
|
case 'unknown':
|
||||||
$where[] = "cal_status='U'"; break;
|
$where[] = "cal_status='U'"; break;
|
||||||
case 'accepted':
|
case 'accepted':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user