From e109769f26c5c46bfa5700b7c024ba6d2fc7e965 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr>
Date: Thu, 27 Jan 2022 15:58:30 +0100
Subject: [PATCH] Correction test suite migration php8

---
 module/Application/src/Assertion/StructureAssertion.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/Application/src/Assertion/StructureAssertion.php b/module/Application/src/Assertion/StructureAssertion.php
index 5d4487a564..1ad09278fb 100755
--- a/module/Application/src/Assertion/StructureAssertion.php
+++ b/module/Application/src/Assertion/StructureAssertion.php
@@ -61,7 +61,7 @@ class StructureAssertion extends AbstractAssertion
         /* @var $structure Structure */
 
         // Si c'est bon alors on affine...
-        switch ($action) {
+        if ($structure) switch ($action) {
             case 'saisie':
             case 'delete':
                 return $this->assertStructure($role, $structure);
-- 
GitLab