The following change will prevent an error if, for some reason, Enom is only returning one nameserver, which happened me today.
if ($response->status() == "OK") {
$data = $response->response();
if ( isset( $data->dns ) && is_array( $data->dns ) ) {
foreach ($data->dns as $ns)
$vars->ns[] = $ns;
}
}
Blesta Version 3.6.1
Enom (ver 2.2.1)
File: components/modules/enom/enom.php
Line: 1151