]> git.mxchange.org Git - friendica.git/commitdiff
Review
authorAdam Magness <adam.magness@gmail.com>
Fri, 24 Nov 2017 00:22:30 +0000 (19:22 -0500)
committerAdam Magness <adam.magness@gmail.com>
Fri, 24 Nov 2017 00:22:30 +0000 (19:22 -0500)
null_date and spaces at end of line

src/Object/Contact.php

index 50981659b298e24ca5fc4fbb432ba2096863c05c..d799a7d892a74636fde5733f66981a8449aa76ac 100644 (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;
        }