} $coma = -99; if ($vars[10] != '/') { $coma = $vars[10]; } $tail = -99; if ($vars[11] != '/' && $vars[11] != '-') { $tail = $vars[11]; } $pa = -99; if ($vars[12] != '/' && $vars[12] != '-') { $pa = $vars[12]; } $desc = explode("');", $vars[14]); $description = $desc[0]; $id = $observations->addObservation($objectid, $observerid, $date, $time); $observations->setInstrumentId($id, $instrumentid); $observations->setDescription($id, $description); $observations->setMethode($id, $methode); $observations->setMagnitude($id, $mag); $observations->setMagnitudeUncertain($id, $uncertain); $observations->setMagnitudeWeakerThan($id, $weaker); $observations->setChart($id, $chart); $observations->setMagnification($id, $magnification); $observations->setDc($id, $dc); $observations->setComa($id, $coma); $observations->setTail($id, $tail); $observations->setPa($id, $pa); } } fclose($fh);