diff --git a/inc/caldav-REPORT-expand-property.php b/inc/caldav-REPORT-expand-property.php
index 77b4de9a..b72f23b5 100644
--- a/inc/caldav-REPORT-expand-property.php
+++ b/inc/caldav-REPORT-expand-property.php
@@ -1,7 +1,5 @@
...HTTP/1.1 200 OK...
* pull out the content of content and check to see if it has any href elements. If it *does* then
diff --git a/inc/caldav-REPORT-sync-collection.php b/inc/caldav-REPORT-sync-collection.php
index b70903c6..f17ce2de 100644
--- a/inc/caldav-REPORT-sync-collection.php
+++ b/inc/caldav-REPORT-sync-collection.php
@@ -9,7 +9,6 @@
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later
*/
-require("DAVResource.php");
$responses = array();
/**
diff --git a/inc/caldav-REPORT.php b/inc/caldav-REPORT.php
index 32c59a51..9c2a647b 100644
--- a/inc/caldav-REPORT.php
+++ b/inc/caldav-REPORT.php
@@ -11,6 +11,7 @@
dbg_error_log("REPORT", "method handler");
require_once("XMLDocument.php");
+require_once('DAVResource.php');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['report']) && $c->dbg['report'])) ) {
$fh = fopen('/tmp/REPORT.txt','w');