diff --git a/inc/caldav-REPORT.php b/inc/caldav-REPORT.php index 5ec199b9..e6e3cd22 100644 --- a/inc/caldav-REPORT.php +++ b/inc/caldav-REPORT.php @@ -228,7 +228,7 @@ else { // dbg_error_log("REPORT", "Report[%d] Start:%s, End: %s, Events: %d, Todos: %d, Freebusy: %d", // $i, $report[$i]['start'], $report[$i]['end'], $report[$i]['filters']['VEVENT'], $report[$i]['filters']['VTODO'], $report[$i]['filters']['VFREEBUSY']); - $where .= " WHERE caldav_data.dav_name ~ ".qpg("^".$request->path)." "; + $where = " WHERE caldav_data.dav_name ~ ".qpg("^".$request->path)." "; switch( $report[$i]['type'] ) { case 'CALENDAR-QUERY': if ( isset( $report[$i]['start'] ) ) {