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

functions_convert fails to set global moderators default group

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3-RC1
    • Component/s: None
    • Labels:
      None

      Description

      In functions_convert.php at line 2150, the query to get the user ids of the global moderators is not executed.

      fix_empty_primary_groups()

      $sql = 'SELECT user_id FROM ' . USER_GROUP_TABLE . ' WHERE group_id = ' . get_group_id('global_moderators');
      // Missing: $result = $db->sql_query($sql);
       
      $user_ids = array();
      while ($row = $db->sql_fetchrow($result))
      {
      	$user_ids[] = $row['user_id'];
      }
      $db->sql_freeresult($result);
      

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              M.Gaetan89 M.Gaetan89 [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: