From: Tobias Hößl Date: Thu, 2 Aug 2012 20:39:19 +0000 (+0200) Subject: Fix some edge cases X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f5a88aa10a33a3872bcc70d80e887a65a2b0333;p=friendica-addons.git Fix some edge cases --- diff --git a/dav/common/calendar.fnk.php b/dav/common/calendar.fnk.php index 14951119..cd5efa57 100644 --- a/dav/common/calendar.fnk.php +++ b/dav/common/calendar.fnk.php @@ -249,10 +249,11 @@ function dav_create_server($force_authentication = false, $needs_caldav = true, $server->addPlugin($carddavPlugin); } - $aclPlugin = new $GLOBALS["CALDAV_ACL_PLUGIN_CLASS"](); - $aclPlugin->defaultUsernamePath = "principals/users"; - $server->addPlugin($aclPlugin); - + if ($GLOBALS["CALDAV_ACL_PLUGIN_CLASS"] != "") { + $aclPlugin = new $GLOBALS["CALDAV_ACL_PLUGIN_CLASS"](); + $aclPlugin->defaultUsernamePath = "principals/users"; + $server->addPlugin($aclPlugin); + } if ($force_authentication) $server->broadcastEvent('beforeMethod', array("GET", "/")); // Make it authenticate