Parcourir la source

Menu Edit - Item List: Fix count.

fusionate il y a 1 an
Parent
commit
3d1c73aa16
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      core/menu/menu_item_list.php

+ 2 - 2
core/menu/menu_item_list.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2023
+	Portions created by the Initial Developer are Copyright (C) 2008-2024
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -425,7 +425,7 @@
 	echo "	}\n";
 
 //update number of menu items
-	echo "	document.getElementById('num_rows').innerHTML = '".(!empty($x) ?: 0)."';\n";
+	echo "	document.getElementById('num_rows').innerHTML = '".(!empty($x) ? $x : 0)."';\n";
 
 	echo "</script>\n";