]> git.agnieray.net Git - galette.git/commitdiff
Missing use, fix potential wrong method return
authorJohan Cwiklinski <johan@x-tnd.be>
Thu, 7 May 2020 15:57:45 +0000 (17:57 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Thu, 7 May 2020 15:57:45 +0000 (17:57 +0200)
galette/lib/Galette/Controllers/GaletteController.php

index 4e07ed023cde43272132aae114e72b9be467b677..d5e2eea01366a1607da204c18773304861372b1f 100644 (file)
@@ -39,8 +39,10 @@ namespace Galette\Controllers;
 
 use Slim\Http\Request;
 use Slim\Http\Response;
-use Galette\Core\SysInfos;
+use Galette\Core\Logo;
+use Galette\Core\PrintLogo;
 use Galette\Core\GaletteMail;
+use Galette\Core\SysInfos;
 use Galette\Entity\FieldsCategories;
 use Galette\Entity\Status;
 use Galette\IO\News;
@@ -357,11 +359,11 @@ class GaletteController extends AbstractController
                     );
                 }
             }
-
-            return $response
-                ->withStatus(301)
-                ->withHeader('Location', $this->router->pathFor('preferences'));
         }
+
+        return $response
+            ->withStatus(301)
+            ->withHeader('Location', $this->router->pathFor('preferences'));
     }
 
     /**