|
@@ 2757-2766 (lines=10) @@
|
| 2754 |
|
); |
| 2755 |
|
} |
| 2756 |
|
// If a moderator exists for this board, add that moderator for all children too. |
| 2757 |
|
if (!empty($row['id_moderator'])) |
| 2758 |
|
foreach ($boards as $id => $dummy) |
| 2759 |
|
{ |
| 2760 |
|
$boards[$id]['moderators'][$row['id_moderator']] = array( |
| 2761 |
|
'id' => $row['id_moderator'], |
| 2762 |
|
'name' => $row['real_name'], |
| 2763 |
|
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'], |
| 2764 |
|
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '">' . $row['real_name'] . '</a>' |
| 2765 |
|
); |
| 2766 |
|
} |
| 2767 |
|
|
| 2768 |
|
// If a moderator group exists for this board, add that moderator group for all children too |
| 2769 |
|
if (!empty($row['id_moderator_group'])) |
|
@@ 2769-2778 (lines=10) @@
|
| 2766 |
|
} |
| 2767 |
|
|
| 2768 |
|
// If a moderator group exists for this board, add that moderator group for all children too |
| 2769 |
|
if (!empty($row['id_moderator_group'])) |
| 2770 |
|
foreach ($boards as $id => $dummy) |
| 2771 |
|
{ |
| 2772 |
|
$boards[$id]['moderator_groups'][$row['id_moderator_group']] = array( |
| 2773 |
|
'id' => $row['id_moderator_group'], |
| 2774 |
|
'name' => $row['group_name'], |
| 2775 |
|
'href' => $scripturl . '?action=groups;sa=members;group=' . $row['id_moderator_group'], |
| 2776 |
|
'link' => '<a href="' . $scripturl . '?action=groups;sa=members;group=' . $row['id_moderator_group'] . '">' . $row['group_name'] . '</a>' |
| 2777 |
|
); |
| 2778 |
|
} |
| 2779 |
|
} |
| 2780 |
|
$smcFunc['db_free_result']($result); |
| 2781 |
|
} |