From a67596c807a60d0eb4790f2b0d2c059ba6953f85 Mon Sep 17 00:00:00 2001
From: gloas <gloas@git-test.afi-sa.fr>
Date: Mon, 15 Jul 2013 13:38:48 +0000
Subject: [PATCH] Ajout cas pas de preferences pour le menu horizontal

---
 library/Class/Systeme/MenuHorizontal.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/library/Class/Systeme/MenuHorizontal.php b/library/Class/Systeme/MenuHorizontal.php
index bce33706836..5508e395ab7 100644
--- a/library/Class/Systeme/MenuHorizontal.php
+++ b/library/Class/Systeme/MenuHorizontal.php
@@ -52,7 +52,9 @@ class Class_Systeme_MenuHorizontal {
 
 
 	public function getMenuPrefencesByIdModule($id_module) {
-		return $this->_index_menus[$id_module]['preferences'];
+		if(isset($this->_index_menus[$id_module]['preferences']))
+			return $this->_index_menus[$id_module]['preferences'];
+		return [];
 	}
 
 
-- 
GitLab