From 0ff0f66b2d8cb22f091c07196e0820bb355bf69f Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 27 Nov 2011 22:02:25 +1300 Subject: [PATCH] Fix logic error in hide_TODO setting. --- inc/caldav-REPORT-multiget.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/caldav-REPORT-multiget.php b/inc/caldav-REPORT-multiget.php index 34aea60f..d6dc4bfd 100644 --- a/inc/caldav-REPORT-multiget.php +++ b/inc/caldav-REPORT-multiget.php @@ -89,8 +89,7 @@ if ( $mode == 'caldav' ) { if ( $collection->Privileges() != privilege_to_bits('DAV::all') ) { $where .= " AND (calendar_item.class != 'PRIVATE' OR calendar_item.class IS NULL) "; } - - if ( isset($c->hide_TODO) && $c->hide_TODO && ! $collection->Privileges() == privilege_to_bits('all') ) { + if ( isset($c->hide_TODO) && $c->hide_TODO && ! $collection->HavePrivilegeTo('all') ) $where .= " AND caldav_data.caldav_type NOT IN ('VTODO') "; } }