Posted by savedario on October 15, 2009 at 8:52pm
Jump to:
| Project: | Trees |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | domidc |
| Status: | active |
Issue Summary
tress.module code: 823
$result = db_result(db_query("SELECT m.mlid FROM menu_links m INNER JOIN trees t ON t.mlid = m.mlid WHERE m.plid = %d AND m.link_path = '%s' AND m.module = '%s'", 0, arg(0).'/'.arg(1), 'trees'));
should be instead: $result = db_result(db_query("SELECT m.mlid FROM {menu_links} m INNER JOIN {trees} t ON t.mlid = m.mlid WHERE m.plid = %d AND m.link_path = '%s' AND m.module = '%s'", 0, arg(0).'/'.arg(1), 'trees'));
otherwise one gets "Table not found".
Comments
#1
I've found a second one in:
trees.pages.inc: 180
$menu_name = db_query("SELECT menu_name FROM menu_links WHERE mlid = %d", $tree['mlid']);should be instead:
$menu_name = db_query("SELECT menu_name FROM {menu_links} WHERE mlid = %d", $tree['mlid']);#2
We be fixed as soon as possible, tonight I ll release a version with these fixes
#3
#4