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:
parent
02da77af19
commit
44c4a2fd49
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user