$foo) { if ($i > 0) { echo ""; } ?> $foo) { if ($notification_settings = get_user_notification_settings(elgg_get_logged_in_user_guid())) { if ($notification_settings->$method) { $personalchecked[$method] = 'checked="checked"'; } else { $personalchecked[$method] = ''; } } if ($i > 0) { $fields .= ""; } $fields .= <<< END END; $i++; } echo $fields; ?>