From: Michael Vogel Date: Sat, 17 Oct 2015 00:36:16 +0000 (+0200) Subject: Avoid wrong birthdays X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=485e65871e109ccc51fccb91857e2dc296fdf379;p=friendica.git Avoid wrong birthdays --- diff --git a/include/diaspora.php b/include/diaspora.php index 757cf1a6ba..c97abc28cd 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2421,7 +2421,8 @@ function diaspora_profile($importer,$xml,$msg) { $birthday = str_replace('1000','1901',$birthday); - $birthday = datetime_convert('UTC','UTC',$birthday,'Y-m-d'); + if ($birthday != "") + $birthday = datetime_convert('UTC','UTC',$birthday,'Y-m-d'); // this is to prevent multiple birthday notifications in a single year // if we already have a stored birthday and the 'm-d' part hasn't changed, preserve the entry, which will preserve the notify year