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
1 changed files with 3 additions and 3 deletions

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
@ -484,7 +484,7 @@ class Contact extends BaseObject
WHERE `uid` = %d
) ", intval($uid), intval($uid)
);
return $r;
}
@ -501,7 +501,7 @@ class Contact extends BaseObject
AND `pending` = 0
LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count)
);
return $r;
}