X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdfrn.php;h=09688586a3599fe19214c01f88ae0564a0d52321;hb=a941199760420298d5977b285e2016d860b1e073;hp=aae935963d0427c7b6ab7afd3cefc62ecc73893a;hpb=cfb99aa32382a18829fd79121f0b348dd0577dc9;p=friendica.git diff --git a/include/dfrn.php b/include/dfrn.php index aae935963d..09688586a3 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -554,7 +554,7 @@ class dfrn { xml::add_element($doc, $author, "poco:displayName", $profile["name"]); xml::add_element($doc, $author, "poco:updated", $namdate); - if (trim($profile["dob"]) != "0000-00-00") + if (trim($profile["dob"]) > '0001-01-01') xml::add_element($doc, $author, "poco:birthday", "0000-".date("m-d", strtotime($profile["dob"]))); xml::add_element($doc, $author, "poco:note", $profile["about"]); @@ -1402,7 +1402,7 @@ class dfrn { // "poco:birthday" is the birthday in the format "yyyy-mm-dd" $value = $xpath->evaluate($element . "/poco:birthday/text()", $context)->item(0)->nodeValue; - if (!in_array($value, array("", "0000-00-00"))) { + if (!in_array($value, array("", "0000-00-00", "0001-01-01"))) { $bdyear = date("Y"); $value = str_replace("0000", $bdyear, $value);