1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Bugtracker #4825 - avoid duplication of menus created via custom page/menu page

This commit is contained in:
e107steved
2009-10-03 21:42:03 +00:00
parent 52789941c7
commit e8cd67d696

View File

@@ -9,9 +9,9 @@
* Custom Menus/Pages Administration * Custom Menus/Pages Administration
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/cpage.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/cpage.php,v $
* $Revision: 1.21 $ * $Revision: 1.22 $
* $Date: 2009-08-28 16:10:55 $ * $Date: 2009-10-03 21:42:03 $
* $Author: marj_nl_fr $ * $Author: e107steved $
* *
*/ */
@@ -456,8 +456,7 @@ class page
if($type) if($type)
{ {
$menu_name = $tp -> toDB($_POST['menu_name']); // not to be confused with menu-caption. $menu_name = $tp -> toDB($_POST['menu_name']); // not to be confused with menu-caption.
if($sql -> db_Update('menus', "menu_name='{$menu_name}' WHERE menu_path='{$mode}' ") !== FALSE)
if($sql -> db_Update("menus", "menu_name='{$menu_name}' WHERE menu_path='{$mode}' "))
{ {
$update++; $update++;
} }