From 92e1d351800b76b966be63230cc38cc260ba23a5 Mon Sep 17 00:00:00 2001 From: dougk_ff7 Date: Tue, 19 Mar 2002 15:39:06 +0000 Subject: [PATCH] Here we have the pleasure of fixing bugs 526891 and 530830. Both have been tested on my local copy, and they should be ready! git-svn-id: file:///svn/phpbb/trunk@2351 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_groups.php | 10 +++++++++- phpBB/login.php | 10 +++++----- phpBB/templates/subSilver/admin/group_select_body.tpl | 2 ++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/phpBB/admin/admin_groups.php b/phpBB/admin/admin_groups.php index 1e6bed8b26..e66aa2187b 100644 --- a/phpBB/admin/admin_groups.php +++ b/phpBB/admin/admin_groups.php @@ -343,9 +343,17 @@ else "S_GROUP_SELECT" => $select_list) ); + // + // Faking the IF... ELSE statements again... + // + if( count($group_list) > 0 ) + { + $template->assign_block_vars("select_box", array()); + } + $template->pparse('body'); } include('page_footer_admin.'.$phpEx); -?> \ No newline at end of file +?> diff --git a/phpBB/login.php b/phpBB/login.php index f0c5e0e94e..c8d7bfa65b 100644 --- a/phpBB/login.php +++ b/phpBB/login.php @@ -97,10 +97,10 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($ $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : ""; $template->assign_vars(array( - "META" => '') + "META" => '') ); - $message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); + $message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); message_die(GENERAL_MESSAGE, $message); } @@ -111,10 +111,10 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($ $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : ""; $template->assign_vars(array( - "META" => '') + "META" => '') ); - $message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); + $message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); message_die(GENERAL_MESSAGE, $message); } @@ -227,4 +227,4 @@ else } -?> \ No newline at end of file +?> diff --git a/phpBB/templates/subSilver/admin/group_select_body.tpl b/phpBB/templates/subSilver/admin/group_select_body.tpl index e00f85e110..7428918896 100644 --- a/phpBB/templates/subSilver/admin/group_select_body.tpl +++ b/phpBB/templates/subSilver/admin/group_select_body.tpl @@ -8,9 +8,11 @@ {L_GROUP_SELECT} + {S_GROUP_SELECT}    + {S_HIDDEN_FIELDS}