]> git.mxchange.org Git - friendica.git/commitdiff
Avoid wrong birthdays
authorMichael Vogel <icarus@dabo.de>
Sat, 17 Oct 2015 00:36:16 +0000 (02:36 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 17 Oct 2015 00:36:16 +0000 (02:36 +0200)
include/diaspora.php

index 757cf1a6bade158c8a827da9f1a5ed72a7e5f340..c97abc28cdec81b8049f5cf401cc39bee7b2b3b7 100644 (file)
@@ -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