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

Sync fails when moving all of a user's posts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.1
    • 3.0.0
    • ACP
    • None
    • PHP Environment: 5.2.3
      Database: 5.0.23

      From includes/acp/acp_users.php, near line 630

      							$forum_id_ary = array_unique($forum_id_ary);
      							$topic_id_ary = array_unique(array_merge($topic_id_ary, $new_topic_id_ary));
       
       
      							if (sizeof($topic_id_ary))
      							{
      								sync('reported', 'topic_id', $topic_id_ary);
      								sync('topic', 'topic_id', $topic_id_ary);
      							}

      The problem here: sync() works on the topic IDs in the array values, but here the topic IDs are in the keys. The forum ID sync is fine, AFAIK.

      Simply add an array_keys to $topic_id_ary

            Acyd Burn Meik Sievertsen [X] (Inactive)
            A_Jelly_Doughnut A_Jelly_Doughnut [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: