Merge pull request #256 from marc1706/ticket/255
[ticket/255] Fix display of date of users' upcoming birthdays
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user