From 5e8b9032077e38b529ea41de919ad14334b8fc7c Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 26 Apr 2010 12:28:30 +0000 Subject: [PATCH] if filter showonlypublic is set, set status filter to hide rejected too --- calendar/inc/class.calendar_so.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index 16745dd3d1..aed3dd97c9 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -405,7 +405,8 @@ class calendar_so switch($filter) { case 'showonlypublic': - $where[] = "cal_public=1"; break; + $where[] = "cal_public=1"; + $where[] = "cal_status != 'R'"; break; case 'deleted': $where[] = 'cal_deleted='.$this->db->quote(true,'bool'); case 'unknown':