From d1247d6c5f8777f90d93912ee241fd0e05d07800 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 19 Apr 2012 12:52:00 +0000 Subject: [PATCH] * CalDAV: fixed PHP Fatal Error when iCal contains invalid participant url like Lighttnings "invalid:noemail" --- phpgwapi/inc/class.groupdav_principals.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.groupdav_principals.inc.php b/phpgwapi/inc/class.groupdav_principals.inc.php index 80ad43654d..fb0ee12884 100644 --- a/phpgwapi/inc/class.groupdav_principals.inc.php +++ b/phpgwapi/inc/class.groupdav_principals.inc.php @@ -891,7 +891,10 @@ class groupdav_principals extends groupdav_handler break; default: - $this->groupdav->log(__METHOD__."('$url') unsupported principal URL '$url'!"); + if (isset($GLOBALS['groupdav']) && is_a($GLOBALS['groupdav'],'groupdav')) + { + $GLOBALS['groupdav']->log(__METHOD__."('$url') unsupported principal URL '$url'!"); + } return false; } return $uid && in_array($type, $only_type) ? $uid : false;