Merge pull request #256 from marc1706/ticket/255

[ticket/255] Fix display of date of users' upcoming birthdays
This commit is contained in:
Marc Alexander
2014-06-09 14:52:13 +02:00

View File

@@ -165,7 +165,7 @@ class portal_birthday_list_module
*/
protected function format_birthday($user, $birthday, $date_settings)
{
if (!preg_match('/(?:[0-9])+-+(?:[0-9]{2})+-+(?:[0-9]{4})?/', $birthday, $match))
if (!preg_match('/[0-9]{1,2}-[ ]?[0-9]{1,2}-[0-9]{4}/', $birthday))
{
return '';
}