forked from extern/egroupware
* CardDAV/GroupDAV: handle deleted contacts, as not existing (404 Not Found)
This commit is contained in:
parent
c4a01cd4fc
commit
40dd19fd3e
@ -565,7 +565,13 @@ class addressbook_groupdav extends groupdav_handler
|
||||
*/
|
||||
function read($id)
|
||||
{
|
||||
return $this->bo->read(array(self::$path_attr => $id));
|
||||
$contact = $this->bo->read(array(self::$path_attr => $id));
|
||||
|
||||
if ($contact && $contact['tid'] == addressbook_so::DELETED_TYPE)
|
||||
{
|
||||
$contact = null; // handle deleted events, as not existing (404 Not Found)
|
||||
}
|
||||
return $contact;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user