diff options
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/guest_login.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index 95db582f..efacaeb9 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -34,8 +34,11 @@ function guest_register() { $angel_types_source = sql_select("SELECT * FROM `AngelTypes` ORDER BY `name`"); $angel_types = array(); - foreach ($angel_types_source as $angel_type) + foreach ($angel_types_source as $angel_type) { $angel_types[$angel_type['id']] = $angel_type['name'] . ($angel_type['restricted'] ? " (restricted)" : ""); + if (! $angel_type['restricted']) + $selected_angel_types[] = $angel_type['id']; + } if (isset($_REQUEST['submit'])) { $ok = true; |