]> git.mxchange.org Git - friendica.git/blobdiff - include/Contact.php
Only import new OStatus posts if they are from our followers
[friendica.git] / include / Contact.php
index 3d4040317f1065d606028c459940dba09ee88bf3..fc9f660f1377e81aba7ae63f274f9dff1a418302 100644 (file)
@@ -127,7 +127,7 @@ function mark_for_death($contact) {
        if($contact['archive'])
                return;
 
-       if($contact['term-date'] <= NULL_DATE) {
+       if ($contact['term-date'] <= NULL_DATE) {
                q("UPDATE `contact` SET `term-date` = '%s' WHERE `id` = %d",
                                dbesc(datetime_convert()),
                                intval($contact['id'])
@@ -254,7 +254,7 @@ function get_contact_details_by_url($url, $uid = -1, $default = array()) {
 
                // "bd" always contains the upcoming birthday of a contact.
                // "birthday" might contain the birthday including the year of birth.
-               if ($profile["birthday"] >= "0001-01-01") {
+               if ($profile["birthday"] != "0000-00-00") {
                        $bd_timestamp = strtotime($profile["birthday"]);
                        $month = date("m", $bd_timestamp);
                        $day = date("d", $bd_timestamp);
@@ -271,7 +271,7 @@ function get_contact_details_by_url($url, $uid = -1, $default = array()) {
                                $profile["bd"] = (++$current_year)."-".$month."-".$day;
                        }
                } else {
-                       $profile["bd"] = "0001-01-01";
+                       $profile["bd"] = "0000-00-00";
                }
        } else {
                $profile = $default;
@@ -307,7 +307,7 @@ function get_contact_details_by_url($url, $uid = -1, $default = array()) {
                $profile["location"] = "";
                $profile["about"] = "";
                $profile["gender"] = "";
-               $profile["birthday"] = "0001-01-01";
+               $profile["birthday"] = "0000-00-00";
        }
 
        $cache[$url][$uid] = $profile;