From 14659123495be5e4f6f7e34997f8a04815a6047a Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Tue, 20 Nov 2018 18:14:52 +0100 Subject: [PATCH] return empty array in case of error --- src/REMOTEDATA/CDAWEB.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/REMOTEDATA/CDAWEB.php b/src/REMOTEDATA/CDAWEB.php index 93365f7..a029c5e 100644 --- a/src/REMOTEDATA/CDAWEB.php +++ b/src/REMOTEDATA/CDAWEB.php @@ -438,7 +438,8 @@ class CDAWEB extends RemoteDataCenterClass { error_log("ERROR no response for : ".$ds." : ".$start." - ".$stop.PHP_EOL,3,err); error_log($res->saveXML(),3,err); - exit(); + $this->closeConnection(); + return array(); } $fileNames = $res->getElementsByTagName("Name"); -- libgit2 0.21.2