phpBB

Code Changes

File: includes/acp/acp_forums.php

  Unmodified   Added   Modified   Removed
Line 842Line 842
			ORDER BY left_id";
$result = $db->sql_query($sql);


			ORDER BY left_id";
$result = $db->sql_query($sql);


		if ($row = $db->sql_fetchrow($result))


		$rowset = array();
while ($row = $db->sql_fetchrow($result))

		{

		{

			do

















			$rowset[(int) $row['forum_id']] = $row;
}
$db->sql_freeresult($result);

/**
* Modify the forum list data
*
* @event core.acp_manage_forums_modify_forum_list
* @var array rowset Array with the forums list data
* @since 3.1.10-RC1
*/
$vars = array('rowset');
extract($phpbb_dispatcher->trigger_event('core.acp_manage_forums_modify_forum_list', compact($vars)));

if (!empty($rowset))
{
foreach ($rowset as $row)

			{
$forum_type = $row['forum_type'];


			{
$forum_type = $row['forum_type'];


Line 888Line 905
					'U_SYNC'			=> $url . '&action=sync')
);
}

					'U_SYNC'			=> $url . '&action=sync')
);
}

			while ($row = $db->sql_fetchrow($result));

 
		}
else if ($this->parent_id)
{

		}
else if ($this->parent_id)
{

Line 904Line 920
				'U_SYNC'			=> $url . '&action=sync')
);
}

				'U_SYNC'			=> $url . '&action=sync')
);
}

		$db->sql_freeresult($result);

		unset($rowset);


$template->assign_vars(array(
'ERROR_MSG' => (sizeof($errors)) ? implode('<br />', $errors) : '',


$template->assign_vars(array(
'ERROR_MSG' => (sizeof($errors)) ? implode('<br />', $errors) : '',