| @@ 1762-1768 (lines=7) @@ | ||
| 1759 | { |
|
| 1760 | // Initialize each permission as being 'off' until proven otherwise. |
|
| 1761 | foreach ($permissions as $permission) |
|
| 1762 | if (!isset($context[$permission][$row['id_group']])) |
|
| 1763 | $context[$permission][$row['id_group']] = array( |
|
| 1764 | 'id' => $row['id_group'], |
|
| 1765 | 'name' => $row['group_name'], |
|
| 1766 | 'is_postgroup' => $row['min_posts'] != -1, |
|
| 1767 | 'status' => 'off', |
|
| 1768 | ); |
|
| 1769 | ||
| 1770 | $context[$row['permission']][$row['id_group']]['status'] = empty($row['status']) ? 'deny' : ($row['status'] == 1 ? 'on' : 'off'); |
|
| 1771 | } |
|
| @@ 135-140 (lines=6) @@ | ||
| 132 | $membersOnlineStats['list_users_online'][$row[$membersOnlineOptions['sort']] . '_' . $row['member_name']] = empty($row['show_online']) ? '<em>' . $link . '</em>' : $link; |
|
| 133 | ||
| 134 | // Store all distinct (primary) membergroups that are shown. |
|
| 135 | if (!isset($membersOnlineStats['online_groups'][$row['id_group']])) |
|
| 136 | $membersOnlineStats['online_groups'][$row['id_group']] = array( |
|
| 137 | 'id' => $row['id_group'], |
|
| 138 | 'name' => $row['group_name'], |
|
| 139 | 'color' => $row['online_color'] |
|
| 140 | ); |
|
| 141 | } |
|
| 142 | $smcFunc['db_free_result']($request); |
|
| 143 | ||