* CalDAV: fixed PHP Fatal Error when iCal contains invalid participant url like Lighttnings "invalid:noemail"

This commit is contained in:
Ralf Becker 2012-04-19 12:51:04 +00:00
parent c9536aa970
commit c3c785de0b

View File

@ -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;