debugging menu sync

This commit is contained in:
redmatrix
2015-09-08 18:40:56 -07:00
parent b28d3015fe
commit f0847e6f32
2 changed files with 3 additions and 2 deletions

View File

@@ -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;