1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Check if contact was retrieved

This commit is contained in:
Thomas Tanghus 2013-05-25 01:03:45 +02:00
parent 02da77af19
commit 44c4a2fd49

View File

@ -213,6 +213,10 @@ class GroupController extends BaseController {
$catman = new \OC_VCategories('contact', $this->api->getUserId());
foreach($ids as $contactid) {
$contact = $backend->getContact(null, $contactid, true);
if(!$contact) {
$response->debug('Couldn\'t get contact: ' . $contactid);
continue;
}
$obj = \Sabre\VObject\Reader::read(
$contact['carddata'],
\Sabre\VObject\Reader::OPTION_IGNORE_INVALID_LINES