null_date and spaces at end of line
This commit is contained in:
Adam Magness 2017-11-23 19:22:30 -05:00
parent 6ea8b0441b
commit 130e02ddef

View file

@ -103,7 +103,7 @@ class Contact extends BaseObject
dba::update('contact', array('term-date' => datetime_convert()), array('id' => $contact['id']));
if ($contact['url'] != '') {
dba::update('contact', array('term-date' => datetime_convert()), array('`nurl` = ? AND `term-date` <= 1000-00-00', normalise_link($contact['url'])));
dba::update('contact', array('term-date' => datetime_convert()), array('`nurl` = ? AND `term-date` <= ?', normalise_link($contact['url']), NULL_DATE));
}
} else {
/* @todo