Commit 955c499558a784cd9f91016916717822dd79e23a

Authored by Elena.Budnik
1 parent 10161ceb

add vector to VOT IMPEX, if components are space-separated

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
php/classes/VOTableMgr.php
... ... @@ -679,7 +679,10 @@ class VOTableMgr {
679 679 */
680 680 public function addVectorToVot($paramID, $fileName)
681 681 {
682   - $argsArr = explode(',', $paramID);
  682 + if (strpos($paramID, ',') === false) // LATMOS Ganymede components are defined with spaces!
  683 + $argsArr = explode(' ',$paramID);
  684 + else
  685 + $argsArr = explode(',',$paramID);
683 686  
684 687 $fields = $this->xml->getElementsByTagName('FIELD');
685 688 $table = $this->xml->getElementsByTagName('TABLE')->item(0);
... ...