]> git.agnieray.net Git - galette.git/commitdiff
Fix unreachable condition
authorJohan Cwiklinski <johan@x-tnd.be>
Thu, 5 Oct 2023 05:58:31 +0000 (07:58 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Thu, 5 Oct 2023 09:42:26 +0000 (11:42 +0200)
galette/lib/Galette/IO/CsvOut.php

index 9c03bd675751768edd10b2dd6b672184cb91f40b..3a26074da8b1911c038c33f7e8d80ab341ae657f 100644 (file)
@@ -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)) {