From a9924ea4430c1990d5b6795610d12f8c4f4f015b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20H=C3=B6=C3=9Fl?= Date: Mon, 30 Jul 2012 19:18:10 +0000 Subject: [PATCH] Prevent a notice --- dav/common/calendar.fnk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dav/common/calendar.fnk.php b/dav/common/calendar.fnk.php index ea04bdae..10d88833 100644 --- a/dav/common/calendar.fnk.php +++ b/dav/common/calendar.fnk.php @@ -235,7 +235,7 @@ function dav_create_server($force_authentication = false, $needs_caldav = true, // The object tree needs in turn to be passed to the server class $server = new Sabre_DAV_Server($tree); - $server->setBaseUri(CALDAV_URL_PREFIX); + if (CALDAV_URL_PREFIX != "") $server->setBaseUri(CALDAV_URL_PREFIX); $authPlugin = new Sabre_DAV_Auth_Plugin(Sabre_DAV_Auth_Backend_Std::getInstance(), 'SabreDAV'); $server->addPlugin($authPlugin); -- 2.39.5