diff --git a/Vue/gabarit.php b/Vue/gabarit.php index e9b3ccd..8969052 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -21,6 +21,8 @@ $imgData = $_SESSION['photoAssureCrypte'] ?? ''; * @param object $gabary Instance Gabary pour récupérer les enfants * @return array ['parent' => string, 'child' => string|null] */ + +if (!function_exists('detectActiveMenu')) { function detectActiveMenu($activeLink, $menus, $gabary) { // LOG SIMPLIFIÉE ET FIABLE : @@ -45,6 +47,7 @@ function detectActiveMenu($activeLink, $menus, $gabary) { // 3. Fallback : premier menu return ['parent' => '0', 'child' => null]; } +} // ============================================ // UTILISATION - REMPLACE VOTRE CODE ACTUEL