Commit 6d5a8ab0d508d36b4847801ec3a0296b9f0c8a18

Authored by Benjamin Renard
1 parent ea5cac1a
Exists in master and in 1 other branch WIP

Fix bug

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
src/DDSERVICES/SOAP/DDserverWeb.php
... ... @@ -145,9 +145,10 @@ function getDatasetsModificationDates()
145 145  
146 146 // Modification date
147 147 $cmd = "/opt/tools/DDServer/bin/GetModificationDate ".$timesFile;
148   - exec($cmd, $output, $result_code);
149   - if ($result_code === 0)
150   - $modificationDate = $output[0];
  148 + $output = array();
  149 + exec($cmd, $output, $result_code);
  150 + if ($result_code == 0)
  151 + $modificationDate = $output[0];
151 152 if (!isset($releaseDate))
152 153 $releaseDate = $modificationDate;
153 154  
... ...