Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-13441

functions_convert fails to set global moderators default group

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.3-RC1
    • None
    • None
    • None

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

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

              Created:
              Updated:
              Resolved: