Fix the menu item delete.
http://code.google.com/p/fusionpbx/issues/detail?id=309
This commit is contained in:
parent
fca232027a
commit
9122d58c3c
|
|
@ -40,11 +40,11 @@ if (count($_GET)>0) {
|
||||||
|
|
||||||
//get the menu uuid
|
//get the menu uuid
|
||||||
$menu_uuid = check_str($_GET["id"]);
|
$menu_uuid = check_str($_GET["id"]);
|
||||||
$menu_item_id = check_str($_GET["menu_item_id"]);
|
$menu_item_uuid = check_str($_GET["menu_item_uuid"]);
|
||||||
|
|
||||||
//delete the item in the menu
|
//delete the item in the menu
|
||||||
$sql = "delete from v_menu_items ";
|
$sql = "delete from v_menu_items ";
|
||||||
$sql .= "where menu_item_id = '$menu_item_id' ";
|
$sql .= "where menu_item_uuid = '$menu_item_uuid' ";
|
||||||
$sql .= "and menu_uuid = '$menu_uuid' ";
|
$sql .= "and menu_uuid = '$menu_uuid' ";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
unset($sql);
|
unset($sql);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue