Commit 14659123495be5e4f6f7e34997f8a04815a6047a

Authored by Elena.Budnik
1 parent 7ae8c13d

return empty array in case of error

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/REMOTEDATA/CDAWEB.php
... ... @@ -438,7 +438,8 @@ class CDAWEB extends RemoteDataCenterClass
438 438 {
439 439 error_log("ERROR no response for : ".$ds." : ".$start." - ".$stop.PHP_EOL,3,err);
440 440 error_log($res->saveXML(),3,err);
441   - exit();
  441 + $this->closeConnection();
  442 + return array();
442 443 }
443 444  
444 445 $fileNames = $res->getElementsByTagName("Name");
... ...