diff --git a/synchro/synchro_exec.php b/synchro/synchro_exec.php index 08174954d..8626057c5 100644 --- a/synchro/synchro_exec.php +++ b/synchro/synchro_exec.php @@ -137,12 +137,13 @@ else { exit - 1; } - $bSimulate = (utils::ReadParam('simulate', '0', true) == '1'); - $sDataSourcesList = ReadMandatoryParam($oP, 'data_sources', 'raw_data'); // May contain commas +} - if ($sDataSourcesList == null) { - UsageAndExit($oP); - } +$bSimulate = (utils::ReadParam('simulate', '0', true) == '1'); +$sDataSourcesList = ReadMandatoryParam($oP, 'data_sources', 'raw_data'); // May contain commas + +if ($sDataSourcesList == null) { + UsageAndExit($oP); } foreach(explode(',', $sDataSourcesList) as $iSDS)