mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Finally get rid of that PgQuery properly.
This commit is contained in:
parent
f78bed7a3e
commit
58c82938d1
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once('PgQuery.php');
|
|
||||||
|
|
||||||
$need_expansion = false;
|
$need_expansion = false;
|
||||||
function check_for_expansion( $calendar_data_node ) {
|
function check_for_expansion( $calendar_data_node ) {
|
||||||
global $need_expansion, $expand_range_start, $expand_range_end;
|
global $need_expansion, $expand_range_start, $expand_range_end;
|
||||||
@ -175,7 +173,8 @@ function SqlFilterFragment( $filter, $components, $property = null, $parameter =
|
|||||||
case 'urn:ietf:params:xml:ns:caldav:comp-filter':
|
case 'urn:ietf:params:xml:ns:caldav:comp-filter':
|
||||||
$comp_filter_name = $v->GetAttribute("name");
|
$comp_filter_name = $v->GetAttribute("name");
|
||||||
if ( count($components) == 0 ) {
|
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;
|
$components[] = $comp_filter_name;
|
||||||
$subfilter = $v->GetContent();
|
$subfilter = $v->GetContent();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user