From 6d041b339bd8635ad54c939a29144eba241b9114 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Thu, 5 Oct 2023 07:58:31 +0200 Subject: [PATCH] Fix unreachable condition --- galette/lib/Galette/IO/CsvOut.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) { -- 2.39.2