From 8f5a88aa10a33a3872bcc70d80e887a65a2b0333 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20H=C3=B6=C3=9Fl?= Date: Thu, 2 Aug 2012 22:39:19 +0200 Subject: [PATCH] Fix some edge cases --- dav/common/calendar.fnk.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.5