From: Adam Magness Date: Fri, 24 Nov 2017 00:22:30 +0000 (-0500) Subject: Review X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=130e02ddef74ef10ff3a0864a40bf0485ba0daf5;p=friendica.git Review null_date and spaces at end of line --- diff --git a/src/Object/Contact.php b/src/Object/Contact.php index 50981659b2..d799a7d892 100644 --- a/src/Object/Contact.php +++ b/src/Object/Contact.php @@ -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; }