From: Johan Cwiklinski Date: Thu, 5 Oct 2023 05:58:31 +0000 (+0200) Subject: Fix unreachable condition X-Git-Tag: 1.0.0rc2~20 X-Git-Url: https://git.agnieray.net/?a=commitdiff_plain;h=6d041b339bd8635ad54c939a29144eba241b9114;p=galette.git Fix unreachable condition --- diff --git a/galette/lib/Galette/IO/CsvOut.php b/galette/lib/Galette/IO/CsvOut.php index 9c03bd675..3a26074da 100644 --- a/galette/lib/Galette/IO/CsvOut.php +++ b/galette/lib/Galette/IO/CsvOut.php @@ -412,7 +412,10 @@ class CsvOut extends Csv public function runParametedExport($id) { //try first to run from YAML configuration file - return $this->runYamlParametedExport($id); + $run = $this->runYamlParametedExport($id); + if ($run !== null) { + return $run; + } //if nothing has been run yet, look into legacy XML configuration file if (file_exists($this->legacy_parameted_file)) {