From 8fa8c5eeb8cb752f745bc31b9f37dd502f81a3ba Mon Sep 17 00:00:00 2001 From: Philippe Grand Date: Mon, 13 Jun 2011 09:22:43 +0000 Subject: [PATCH] to avoid warning --- htdocs/lib/functions.lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index fb4c1a1ef5a..4711fdd1a09 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -488,6 +488,7 @@ function dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto } // Define max of key (max may be higher than sizeof becaus of hole due to module disabling some tabs). + $links=array(); $keys=array_keys($links); if (sizeof($keys)) $maxkey=max($keys); else $maxkey=-1;