* CardDAV/GroupDAV: handle deleted contacts, as not existing (404 Not Found)

This commit is contained in:
Ralf Becker 2011-06-19 09:04:07 +00:00
parent 950c7f24fa
commit 14a86eae9f

View File

@ -558,7 +558,13 @@ class addressbook_groupdav extends groupdav_handler
*/
function read($id)
{
return $this->bo->read(self::PATH_ATTRIBUTE == 'id' ? $id : array(self::PATH_ATTRIBUTE => $id));
$contact = $this->bo->read(self::PATH_ATTRIBUTE == 'id' ? $id : array(self::PATH_ATTRIBUTE => $id));
if ($contact && $contact['tid'] == addressbook_so::DELETED_TYPE)
{
$contact = null; // handle deleted events, as not existing (404 Not Found)
}
return $contact;
}
/**