$fields['ignored'] = $fields['readonly'];
}
+ if (!empty($fields['self'])) {
+ $fields['rel'] = Contact::SELF;
+ }
+
$fields = DBStructure::getFieldsForTable('user-contact', $fields);
$fields['cid'] = $pcid;
$fields['uid'] = $contact['uid'];
$fields['ignored'] = $fields['readonly'];
}
+ if (!empty($fields['self'])) {
+ $fields['rel'] = Contact::SELF;
+ }
+
$update_fields = DBStructure::getFieldsForTable('user-contact', $fields);
if (!empty($update_fields)) {
$contacts = DBA::select('contact', ['uri-id', 'uid'], $condition);