* 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:52:00 +00:00
parent accb0137a5
commit d1247d6c5f

View File

@ -891,7 +891,10 @@ class groupdav_principals extends groupdav_handler
break; break;
default: 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 false;
} }
return $uid && in_array($type, $only_type) ? $uid : false; return $uid && in_array($type, $only_type) ? $uid : false;