From e8cd67d69696003476cb827abcdc96b5219373a2 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 3 Oct 2009 21:42:03 +0000 Subject: [PATCH] Bugtracker #4825 - avoid duplication of menus created via custom page/menu page --- e107_admin/cpage.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index 5ab93c15a..c0001d245 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -9,9 +9,9 @@ * Custom Menus/Pages Administration * * $Source: /cvs_backup/e107_0.8/e107_admin/cpage.php,v $ - * $Revision: 1.21 $ - * $Date: 2009-08-28 16:10:55 $ - * $Author: marj_nl_fr $ + * $Revision: 1.22 $ + * $Date: 2009-10-03 21:42:03 $ + * $Author: e107steved $ * */ @@ -456,8 +456,7 @@ class page if($type) { $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}' ")) + if($sql -> db_Update('menus', "menu_name='{$menu_name}' WHERE menu_path='{$mode}' ") !== FALSE) { $update++; }