forked from fusionpbx/fusionpbx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update menu_item_list.php (fusionpbx#4644)
remove potential for "Warning: Use of undefined constant"
- Loading branch information
1 parent
46d0423
commit 0294376
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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): | ||
|
@@ -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']; | ||
|
@@ -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]." "; | ||
echo " ".$row['menu_item_order']." "; | ||
echo "</td>"; | ||
|
||
//echo "<td valign='top' align='center' nowrap class='".$row_style[$c]."'>"; | ||
|
@@ -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']; | ||
|
@@ -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"; | ||
?> | ||
?> |