diff --git a/modules/hosting/site/hosting_site.form.inc b/modules/hosting/site/hosting_site.form.inc index 55279ca..db53575 100644 --- a/modules/hosting/site/hosting_site.form.inc +++ b/modules/hosting/site/hosting_site.form.inc @@ -131,8 +131,8 @@ function hosting_site_available_options($node, $platform = NULL) { $access_check = FALSE; while ($row = db_fetch_array($result)) { - if (!is_null($platform) && !array_key_exists($row['nid'], $allowed_plats)) { - $access_check = FALSE; + if (!is_null($platform) && array_key_exists($row['nid'], $allowed_plats)) { + $platform_profiles[$id] = $name; } elseif (array_key_exists($row['nid'], $allowed_plats)) { $access_check = TRUE; @@ -147,6 +147,9 @@ function hosting_site_available_options($node, $platform = NULL) { unset($profiles[$id]); } } + if (!is_null($platform)) { + $profiles = $platform_profiles; + } reset($profiles); $return['profile'] = array_keys($profiles);