| @@ 195-208 (lines=14) @@ | ||
| 192 | 'newbie_group' => 4, |
|
| 193 | ) |
|
| 194 | ); |
|
| 195 | while ($row = $smcFunc['db_fetch_assoc']($request)) |
|
| 196 | { |
|
| 197 | if ($row['min_posts'] == -1) |
|
| 198 | $context['membergroups'][] = array( |
|
| 199 | 'id' => $row['id_group'], |
|
| 200 | 'name' => $row['group_name'], |
|
| 201 | 'can_be_additional' => true |
|
| 202 | ); |
|
| 203 | else |
|
| 204 | $context['postgroups'][] = array( |
|
| 205 | 'id' => $row['id_group'], |
|
| 206 | 'name' => $row['group_name'] |
|
| 207 | ); |
|
| 208 | } |
|
| 209 | $smcFunc['db_free_result']($request); |
|
| 210 | ||
| 211 | // Some data about the form fields and how they are linked to the database. |
|
| @@ 639-652 (lines=14) @@ | ||
| 636 | 'newbie_group' => 4, |
|
| 637 | ) |
|
| 638 | ); |
|
| 639 | while ($row = $smcFunc['db_fetch_assoc']($request)) |
|
| 640 | { |
|
| 641 | if ($row['min_posts'] == -1) |
|
| 642 | $context['membergroups'][] = array( |
|
| 643 | 'id' => $row['id_group'], |
|
| 644 | 'name' => $row['group_name'], |
|
| 645 | 'can_be_additional' => true |
|
| 646 | ); |
|
| 647 | else |
|
| 648 | $context['postgroups'][] = array( |
|
| 649 | 'id' => $row['id_group'], |
|
| 650 | 'name' => $row['group_name'] |
|
| 651 | ); |
|
| 652 | } |
|
| 653 | $smcFunc['db_free_result']($request); |
|
| 654 | ||
| 655 | $context['page_title'] = $txt['admin_members']; |
|