Skip to content

Commit

Permalink
Update menu_item_list.php (fusionpbx#4644)
Browse files Browse the repository at this point in the history
remove potential for "Warning: Use of undefined constant"
  • Loading branch information
chansizzle authored and markjcrane committed Sep 24, 2019
1 parent 46d0423 commit 0294376
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/menu/menu_item_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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-2012
Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved.
Contributor(s):
Expand Down Expand Up @@ -143,7 +143,7 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
echo "</tr>";

//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_uuid'] = $menu_uuid;
$array['menu_items'][0]['menu_item_title'] = $row2['menu_item_title'];
Expand Down Expand Up @@ -271,7 +271,7 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
}

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 valign='top' align='center' nowrap class='".$row_style[$c]."'>";
Expand All @@ -292,7 +292,7 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
echo "</tr>";

//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_uuid'] = $menu_uuid;
$array['menu_items'][0]['menu_item_title'] = $row['menu_item_title'];
Expand Down Expand Up @@ -337,4 +337,4 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
echo "<br><br>";

require_once "resources/footer.php";
?>
?>

0 comments on commit 0294376

Please sign in to comment.