Only set the "updated" value when it contains a value
This commit is contained in:
parent
f9c695e78d
commit
79a343a69a
|
@ -522,7 +522,12 @@ class PortableContact
|
|||
}
|
||||
}
|
||||
|
||||
$fields = ['updated' => $last_updated, 'last_contact' => DateTimeFormat::utcNow()];
|
||||
$fields = ['last_contact' => DateTimeFormat::utcNow()];
|
||||
|
||||
if (!empty($last_updated)) {
|
||||
$fields['updated'] = $last_updated;
|
||||
}
|
||||
|
||||
dba::update('gcontact', $fields, ['nurl' => normalise_link($profile)]);
|
||||
|
||||
if (($gcontacts[0]["generation"] == 0)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user