to avoid warning

This commit is contained in:
Philippe Grand 2011-06-13 09:22:43 +00:00
parent b7cdab5ed0
commit 8fa8c5eeb8

View File

@ -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;