mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01: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
|
||||
if (!$useUnionQuery) $where[] = '('.implode(' OR ',$to_or).')';
|
||||
|
||||
if($filter != 'deleted') {
|
||||
$where[] = "!cal_deleted";
|
||||
if($filter != 'deleted')
|
||||
{
|
||||
$where[] = 'cal_deleted='.$this->db->quote(false,'bool');
|
||||
}
|
||||
switch($filter)
|
||||
{
|
||||
case 'deleted':
|
||||
$where[] = "cal_deleted"; break;
|
||||
$where[] = 'cal_deleted='.$this->db->quote(true,'bool');
|
||||
case 'unknown':
|
||||
$where[] = "cal_status='U'"; break;
|
||||
case 'accepted':
|
||||
|
Loading…
Reference in New Issue
Block a user