]> git.mxchange.org Git - friendica.git/commitdiff
Some more unneeded changes reverted
authorMichael <heluecht@pirati.ca>
Sat, 18 Mar 2017 08:54:25 +0000 (08:54 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 18 Mar 2017 08:54:25 +0000 (08:54 +0000)
include/Contact.php
mod/hovercard.php

index 3d4040317f1065d606028c459940dba09ee88bf3..1e393895fb73e711648cc58210cff013967d55f7 100644 (file)
@@ -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;
index ea1036b89814d1efc2ba20ccd5c4203e50e0520b..ec749db2088fbcfa1816185a0e198debd679e086 100644 (file)
@@ -75,7 +75,7 @@ function hovercard_content() {
                'tags' => $contact["keywords"],
 //             'nsfw' => intval($contact["nsfw"]),
 //             'server_url' => $contact["server_url"],
-               'bd' => (($contact["birthday"] <= "0001-01-01") ? "" : $contact["birthday"]),
+               'bd' => (($contact["birthday"] == "0000-00-00") ? "" : $contact["birthday"]),
 //             'generation' => $contact["generation"],
                'account_type' => account_type($contact),
                'actions' => $actions,