while (my ($id,$call,$oldtype,$coords,$tick) = $fleet->fetchrow()){
if($ND::DBH->do(q{UPDATE incomings SET shiptype = ? WHERE id = ?},undef,$type,$id) == 1){
def_log $user->{uid}, $call , "Set fleet: [B] $id [/B] to: [B] $type [/B]";
while (my ($id,$call,$oldtype,$coords,$tick) = $fleet->fetchrow()){
if($ND::DBH->do(q{UPDATE incomings SET shiptype = ? WHERE id = ?},undef,$type,$id) == 1){
def_log $user->{uid}, $call , "Set fleet: [B] $id [/B] to: [B] $type [/B]";