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

This commit is contained in:
Ralf Becker 2011-06-19 09:01:15 +00:00
parent c4a01cd4fc
commit 40dd19fd3e

View File

@ -565,7 +565,13 @@ class addressbook_groupdav extends groupdav_handler
*/ */
function read($id) 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;
} }
/** /**