From dea095db04aee3b8cdb8d236f23e8132c328c30c Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 16 Oct 2009 09:56:09 +1300 Subject: [PATCH] Fix problem with classBrowser potentially included multiply. --- inc/DAViCalUser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/DAViCalUser.php b/inc/DAViCalUser.php index 880525d8..37b4cc0d 100644 --- a/inc/DAViCalUser.php +++ b/inc/DAViCalUser.php @@ -10,7 +10,7 @@ */ include('User.php'); -include('classBrowser.php'); +require_once('classBrowser.php'); // DAViCalUser is included via drivers_ldap.php so this could already be loaded include('check_UTF8.php'); include('caldav-PUT-functions.php'); @@ -266,7 +266,7 @@ EOSQL; /** * Present an extra editable row at the bottom of the browse. */ - if ( $ef->EditMode && ('insert' != $this->WriteType) ) { + if ( $ef->EditMode && ('insert' != $this->WriteType) ) { $calendar_name = $ef->DataEntryField( '', 'text', 'path_ics', array( 'size' => 10, 'title' => translate('The calendar name part of the path to store your ics. E.g. the "home" part of "/caldav.php/username/home/"')