Fixed broken birthday
authorMarcel Werk <burntime@woltlab.com>
Tue, 28 Jan 2014 18:58:26 +0000 (19:58 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 28 Jan 2014 18:58:26 +0000 (19:58 +0100)
wcfsetup/install/files/lib/data/user/UserProfile.class.php

index 03ceeed12c171d6434fdee4e64f9d9b57f68d4ed..171c96573d082f0623c7a76fb2e0b206743c9c6a 100644 (file)
@@ -542,6 +542,8 @@ class UserProfile extends DatabaseObjectDecorator implements IBreadcrumbProvider
                if (isset($value[1])) $month = intval($value[1]);
                if (isset($value[2])) $day = intval($value[2]);
                
+               if (!$month || !$day) return '';
+               
                $d = new \DateTime();
                $d->setTimezone(WCF::getUser()->getTimeZone());
                $d->setDate($birthdayYear, $month, $day);