aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-08 18:40:56 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-08 18:40:56 -0700
commitf0847e6f32ceb5a91109f968225b3492dcfe6c9c (patch)
tree99d429acaf36113f1dc09414560c5cfe5b2731f5 /include/import.php
parentb28d3015fe5d65858736177e306f17543a629fc0 (diff)
downloadvolse-hubzilla-f0847e6f32ceb5a91109f968225b3492dcfe6c9c.tar.gz
volse-hubzilla-f0847e6f32ceb5a91109f968225b3492dcfe6c9c.tar.bz2
volse-hubzilla-f0847e6f32ceb5a91109f968225b3492dcfe6c9c.zip
debugging menu sync
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/import.php b/include/import.php
index 7b2f574d9..e468889b4 100644
--- a/include/import.php
+++ b/include/import.php
@@ -690,6 +690,7 @@ function sync_menus($channel,$menus) {
}
$editing = false;
+
$r = q("select * from menu where menu_name = '%s' and menu_channel_id = %d limit 1",
dbesc($m['menu_name']),
intval($channel['channel_id'])
@@ -702,6 +703,7 @@ function sync_menus($channel,$menus) {
continue;
}
$menu_id = $r[0]['menu_id'];
+ $m['menu_id'] = $r[0]['menu_id'];
$x = menu_edit($m);
if(! $x)
continue;