]> git.mxchange.org Git - friendica-addons.git/commitdiff
Prevent a notice
authorTobias Hößl <tobias@hoessl.eu>
Mon, 30 Jul 2012 19:18:10 +0000 (19:18 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Mon, 30 Jul 2012 19:18:10 +0000 (19:18 +0000)
dav/common/calendar.fnk.php

index ea04bdae038b8f6c8683776523413388b7020f07..10d88833d0b2b51b1df70676ed0da07df5a371fd 100644 (file)
@@ -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);