From 1b8b015b55b8238c833ee987ecc58745ce1b27e8 Mon Sep 17 00:00:00 2001 From: the_systech Date: Thu, 11 Apr 2002 17:53:41 +0000 Subject: [PATCH] since user_timezone is now a decimal/floating point number we have to cast it's return value as an integer to make sure it drops the .0 before using it as an array index.. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2525 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/page_header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php index 78a8f8407a..bd94f0bf4f 100644 --- a/phpBB/includes/page_header.php +++ b/phpBB/includes/page_header.php @@ -384,7 +384,7 @@ $template->assign_vars(array( 'S_CONTENT_ENCODING' => $lang['ENCODING'], 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], - 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[$board_config['board_timezone']]), + 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])]), 'S_LOGIN_ACTION' => append_sid('login.'.$phpEx), 'T_HEAD_STYLESHEET' => $theme['head_stylesheet'], @@ -452,4 +452,4 @@ header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); $template->pparse('overall_header'); -?> \ No newline at end of file +?>