Browse Source

Update menu_item_list.php (#4644)

remove potential for "Warning: Use of undefined constant"
chansizzle 6 years ago
parent
commit
af931154d7
1 changed files with 5 additions and 5 deletions
  1. 5 5
      core/menu/menu_item_list.php

+ 5 - 5
core/menu/menu_item_list.php

@@ -17,7 +17,7 @@
 
 
 	The Initial Developer of the Original Code is
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2012
+	Portions created by the Initial Developer are Copyright (C) 2008-2019
 	the Initial Developer. All Rights Reserved.
 	the Initial Developer. All Rights Reserved.
 
 
 	Contributor(s):
 	Contributor(s):
@@ -143,7 +143,7 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
 					echo "</tr>";
 					echo "</tr>";
 
 
 				//update the menu order
 				//update the menu order
-					if ($row2[menu_item_order] != $tmp_menu_item_order) {
+					if ($row2['menu_item_order'] != $tmp_menu_item_order) {
 						$array['menu_items'][0]['menu_item_uuid'] = $row2['menu_item_uuid'];
 						$array['menu_items'][0]['menu_item_uuid'] = $row2['menu_item_uuid'];
 						$array['menu_items'][0]['menu_uuid'] = $menu_uuid;
 						$array['menu_items'][0]['menu_uuid'] = $menu_uuid;
 						$array['menu_items'][0]['menu_item_title'] = $row2['menu_item_title'];
 						$array['menu_items'][0]['menu_item_title'] = $row2['menu_item_title'];
@@ -271,7 +271,7 @@ if (is_array($result) && sizeof($result) != 0) {
 			}
 			}
 
 
 			echo "<td valign='top' nowrap class='".$row_style[$c]."' style='text-align: center;'>";
 			echo "<td valign='top' nowrap class='".$row_style[$c]."' style='text-align: center;'>";
-			echo "  ".$row[menu_item_order]."&nbsp;";
+			echo "  ".$row['menu_item_order']."&nbsp;";
 			echo "</td>";
 			echo "</td>";
 
 
 			//echo "<td valign='top' align='center' nowrap class='".$row_style[$c]."'>";
 			//echo "<td valign='top' align='center' nowrap class='".$row_style[$c]."'>";
@@ -292,7 +292,7 @@ if (is_array($result) && sizeof($result) != 0) {
 			echo "</tr>";
 			echo "</tr>";
 
 
 		//update the menu order
 		//update the menu order
-			if ($row[menu_item_order] != $tmp_menu_item_order) {
+			if ($row['menu_item_order'] != $tmp_menu_item_order) {
 				$array['menu_items'][0]['menu_item_uuid'] = $row['menu_item_uuid'];
 				$array['menu_items'][0]['menu_item_uuid'] = $row['menu_item_uuid'];
 				$array['menu_items'][0]['menu_uuid'] = $menu_uuid;
 				$array['menu_items'][0]['menu_uuid'] = $menu_uuid;
 				$array['menu_items'][0]['menu_item_title'] = $row['menu_item_title'];
 				$array['menu_items'][0]['menu_item_title'] = $row['menu_item_title'];
@@ -337,4 +337,4 @@ echo "</table>\n";
 echo "<br><br>";
 echo "<br><br>";
 
 
 require_once "resources/footer.php";
 require_once "resources/footer.php";
-?>
+?>