From a6ab8ac4310fea4354dd6b11883c6abb9e97a11b Mon Sep 17 00:00:00 2001 From: Yury Buldakov Date: Sun, 27 Aug 2017 04:18:53 +0300 Subject: [PATCH] Fix "A non well formed numeric value encountered" exception In case there are users having birthdays this week "A non well formed numeric value encountered" exception is thrown. Fixes #447 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index dd4dba014..2744fd9dc 100644 --- a/index.php +++ b/index.php @@ -379,7 +379,7 @@ if ($bb_cfg['birthday_check_day'] && $bb_cfg['birthday_enabled']) { $week_all = true; continue; } - $week_list[] = profile_url($week) . ' (' . birthday_age($week['user_birthday'] - 1) . ')'; + $week_list[] = profile_url($week) . ' (' . birthday_age($week['user_birthday']) . ')'; } $week_all = ($week_all) ? ' ...' : ''; $week_list = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], implode(', ', $week_list)) . $week_all;