aboutsummaryrefslogtreecommitdiffstats
path: root/include/menu.php
diff options
context:
space:
mode:
authorMichael Johnston <michaelgeorgejohnston@gmail.com>2013-09-14 17:54:32 -0400
committerMichael Johnston <michaelgeorgejohnston@gmail.com>2013-09-14 17:59:44 -0400
commit0c4857e1a9f0fbfece2ac90ea90d6670a0d4ba41 (patch)
treef269f50d8384037012dcd0ec7ccfe1ed2dfef52d /include/menu.php
parent1dd2a65210bbd6e7f6daa07467e65745e29f4b1a (diff)
downloadvolse-hubzilla-0c4857e1a9f0fbfece2ac90ea90d6670a0d4ba41.tar.gz
volse-hubzilla-0c4857e1a9f0fbfece2ac90ea90d6670a0d4ba41.tar.bz2
volse-hubzilla-0c4857e1a9f0fbfece2ac90ea90d6670a0d4ba41.zip
let me edit menu_desc even if menu_name has not changed
Diffstat (limited to 'include/menu.php')
-rw-r--r--include/menu.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/menu.php b/include/menu.php
index 6d614055a..0e98f3a84 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -141,14 +141,16 @@ function menu_edit($arr) {
}
- $r = q("select * from menu where menu_name = '%s' and menu_channel_id = %d limit 1",
+ $r = q("select * from menu where menu_name = '%s' and menu_channel_id = %d and menu_desc = '%s' limit 1",
dbesc($menu_name),
- intval($menu_channel_id)
+ intval($menu_channel_id),
+ dbesc($menu_desc)
);
if($r)
return false;
+
return q("update menu set menu_name = '%s', menu_desc = '%s'
where menu_id = %d and menu_channel_id = %d limit 1",
dbesc($menu_name),