mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
Contacts: Cleanup and more logging in Contact
This commit is contained in:
parent
ca7d8d3332
commit
b66770b697
@ -90,11 +90,7 @@ class Contact extends VObject\VCard implements IPIMObject {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}/* else {
|
||||
throw new Exception(
|
||||
__METHOD__ . ' 3rd argument must either be an array or a subclass of \VObject\VCard'
|
||||
);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -297,8 +293,14 @@ class Contact extends VObject\VCard implements IPIMObject {
|
||||
$this->props['displayname'] = $result['displayname'];
|
||||
$this->props['permissions'] = $result['permissions'];
|
||||
} else {
|
||||
\OCP\Util::writeLog('contacts', __METHOD__
|
||||
. ' Could not get vcard or carddata: '
|
||||
. $this->getId()
|
||||
. print_r($result, true), \OCP\Util::DEBUG);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
\OCP\Util::writeLog('contacts', __METHOD__.' Error getting contact: ' . $this->getId(), \OCP\Util::DEBUG);
|
||||
}
|
||||
} elseif(isset($this->props['carddata'])) {
|
||||
$data = $this->props['carddata'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user