Pārlūkot izejas kodu

Small bug fix: testing an index out of bounds

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@860 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 gadi atpakaļ
vecāks
revīzija
62ab8f50b8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      application/displayblock.class.inc.php

+ 1 - 1
application/displayblock.class.inc.php

@@ -1082,7 +1082,7 @@ class MenuBlock extends DisplayBlock
 		$sSeparator = '<hr class="menu-separator"/>';
 		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' => '');
 			}