From da726cbe7f6ddca86c2ec8995418146ea8bee32e Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 14 Sep 2010 08:34:20 +0000 Subject: [PATCH] Small bug fix: testing an index out of bounds SVN:trunk[860] --- application/displayblock.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index cbb217cc7..82cadaac6 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -1082,7 +1082,7 @@ class MenuBlock extends DisplayBlock $sSeparator = ''; if (count($aActions) > 0) // Make sure that the separator is not the first item in the menu { - if ($aActions[count($aActions)]['label'] != $sSeparator) // Make sure there are no 2 consecutive separators + if ($aActions[count($aActions)-1]['label'] != $sSeparator) // Make sure there are no 2 consecutive separators { $aActions[] = array('label' => $sSeparator, 'url' => ''); }