mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 22:28:46 +01:00
Some array rejiggling of moderator checks
git-svn-id: file:///svn/phpbb/trunk@46 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a797580600
commit
f37e152b6b
@ -92,8 +92,8 @@ if($total_categories)
|
||||
|
||||
for($i = 0; $i < count($forum_mods_list); $i++)
|
||||
{
|
||||
$forum_mods[$forum_mods_list[$i]["forum_id"]]["username"][] = $forum_mods_list[$i]["username"];
|
||||
$forum_mods[$forum_mods_list[$i]["forum_id"]]["user_id"][] = $forum_mods_list[$i]["user_id"];
|
||||
$forum_mods["forum_".$forum_mods_list[$i]["forum_id"]."_name"][] = $forum_mods_list[$i]["username"];
|
||||
$forum_mods["forum_".$forum_mods_list[$i]["forum_id"]."_id"][] = $forum_mods_list[$i]["user_id"];
|
||||
}
|
||||
|
||||
for($i = 0; $i < $total_categories; $i++)
|
||||
@ -134,7 +134,7 @@ if($total_categories)
|
||||
}
|
||||
|
||||
unset($moderators_links);
|
||||
for($mods = 0; $mods < count($forum_mods[$forum_rows[$j]["forum_id"]]); $mods++)
|
||||
for($mods = 0; $mods < count($forum_mods["forum_".$forum_rows[$j]["forum_id"]."_id"]); $mods++)
|
||||
{
|
||||
if(isset($moderators_links))
|
||||
{
|
||||
@ -144,7 +144,7 @@ if($total_categories)
|
||||
{
|
||||
$moderators_links .= "<br>";
|
||||
}
|
||||
$moderators_links .= "<a href=\"profile.$phpEx?mode=viewprofile&user_id=".$forum_mods[$forum_rows[$j]["forum_id"]]["user_id"][$mods]."\">".$forum_mods[$forum_rows[$j]["forum_id"]]["username"][$mods]."</a>";
|
||||
$moderators_links .= "<a href=\"profile.$phpEx?mode=viewprofile&user_id=".$forum_mods["forum_".$forum_rows[$j]["forum_id"]."_id"][$mods]."\">".$forum_mods["forum_".$forum_rows[$j]["forum_id"]."_name"][$mods]."</a>";
|
||||
}
|
||||
|
||||
$template->set_var(array("FOLDER" => $folder_image,
|
||||
|
Loading…
x
Reference in New Issue
Block a user