From 130e02ddef74ef10ff3a0864a40bf0485ba0daf5 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Thu, 23 Nov 2017 19:22:30 -0500 Subject: [PATCH] Review null_date and spaces at end of line --- src/Object/Contact.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Object/Contact.php b/src/Object/Contact.php index 50981659b..d799a7d89 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; }