Selaa lähdekoodia

! Small fix for right to left: use not empy instead of isset because is_last is set to false for the first item

emanuele 12 vuotta sitten
vanhempi
commit
dda011c7c5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Themes/default/index.template.php

+ 1 - 1
Themes/default/index.template.php

@@ -498,7 +498,7 @@ function template_menu()
 	{
 		echo '
 				<li id="button_', $act, '">
-					<a class="', $button['active_button'] ? 'active' : '', isset($button['is_last']) ? ' last' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
+					<a class="', $button['active_button'] ? 'active' : '', !empty($button['is_last']) ? ' last' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
 						', $button['title'], '
 					</a>';
 		if (!empty($button['sub_buttons']))