-
Bug
-
Resolution: Fixed
-
3.0.x
-
None
-
PHP Environment: 5.2.4-2ubuntu5
Database: PostgreSQL 8.2
The two options "Username length" and "Password length" under "User registration settings" (General tab) are displayed twice:
!http://students.fim.uni-passau.de/~schmidtm/phpbb/double_options_small.jpg
This is because there are two variables set for each option, one for the minimum and another one for the maximum.
Suggested fix:
Don't display options which have
'type' => false
|
in their declaration (that's already the case for max_pass_chars and max_name_chars).
Index: acp/acp_board.php===================================================================--- acp/acp_board.php (revision 8421)+++ acp/acp_board.php (working copy)@@ -526,7 +526,7 @@ // Output relevant page foreach ($display_vars['vars'] as $config_key => $vars) {- if (!is_array($vars) && strpos($config_key, 'legend') === false)+ if ((!is_array($vars) && strpos($config_key, 'legend') === false) || !$vars['type']) { continue; }
|