diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-02-24 17:45:41 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-02-24 17:45:41 +0000 |
commit | f37e152b6b40faef1fb6a9f143f448c7ffa23867 (patch) | |
tree | 7e5dbf7ecb4e9c558794f25191342a6fab414912 /phpBB/index.php | |
parent | a797580600b98fab59a91f3f09c809ec13f65052 (diff) | |
download | forums-f37e152b6b40faef1fb6a9f143f448c7ffa23867.tar forums-f37e152b6b40faef1fb6a9f143f448c7ffa23867.tar.gz forums-f37e152b6b40faef1fb6a9f143f448c7ffa23867.tar.bz2 forums-f37e152b6b40faef1fb6a9f143f448c7ffa23867.tar.xz forums-f37e152b6b40faef1fb6a9f143f448c7ffa23867.zip |
Some array rejiggling of moderator checks
git-svn-id: file:///svn/phpbb/trunk@46 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r-- | phpBB/index.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index aa79cd1eea..e644fdda6d 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -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, |