[ticket/251] Fix display of date of users upcoming birthdays

B3P-251
This commit is contained in:
Marc Alexander
2014-06-09 14:39:22 +02:00
parent a14139cf9a
commit 50737c5cff
3 changed files with 53 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ class birthday_list extends module_base
*/
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 '';
}