From 58c82938d1a29c8a35aae942c6366b803eb24798 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 17 Mar 2010 17:32:52 +1300 Subject: [PATCH] Finally get rid of that PgQuery properly. --- inc/caldav-REPORT-calquery.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/caldav-REPORT-calquery.php b/inc/caldav-REPORT-calquery.php index d2830988..9b130988 100644 --- a/inc/caldav-REPORT-calquery.php +++ b/inc/caldav-REPORT-calquery.php @@ -1,7 +1,5 @@ GetAttribute("name"); if ( count($components) == 0 ) { - $sql .= "AND caldav_data.caldav_type = ".qpg($comp_filter_name)." "; + $sql .= "AND caldav_data.caldav_type = :component_name_filter "; + $params[':component_name_filter'] = $comp_filter_name; } $components[] = $comp_filter_name; $subfilter = $v->GetContent();