mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-07 01:54:16 +01:00
Don't set checksum for non-existing property.
This commit is contained in:
parent
f877dd7339
commit
4890bdf705
@ -18,6 +18,7 @@ if(is_null($id)) {
|
||||
exit();
|
||||
}
|
||||
$vcard = OC_Contacts_App::getContactVCard( $id );
|
||||
if(isset($vcard->CATEGORIES)) {
|
||||
foreach($vcard->children as $property) {
|
||||
if($property->name == 'CATEGORIES') {
|
||||
$checksum = md5($property->serialize());
|
||||
@ -32,3 +33,6 @@ foreach($vcard->children as $property) {
|
||||
OCP\JSON::error(array(
|
||||
'data' => array(
|
||||
'message' => OC_Contacts_App::$l10n->t('Error setting checksum.'))));
|
||||
} else {
|
||||
OCP\JSON::success();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user