Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-7046

User registration settings: two options displayed twice

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • 3.0.x
    • 3.0.1
    • ACP
    • None
    • PHP Environment: 5.2.4-2ubuntu5
      Database: PostgreSQL 8.2

    Description

      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;                        } 

      Attachments

        Activity

          People

            Kellanved Kellanved [X] (Inactive)
            Schumi Schumi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: