While I didn't go through and "count" each line some of the code is familiar and has been updated in the 1.5.6 distribution as well as published but not released 1.5.5
For example, would suggest changing or adding to the following
Code:
function buildBranch($parent_id, $level = 0, $submenu=true, $parent_link='')
{
To be like:
Code:
function buildBranch($parent_id, $level = 0, $submenu=true, $parent_link='')
{
$level = (int)$level;
And for the second file changing $list_box_contents from being defined as a string to a proper array by changing:
Code:
$list_box_contents = '';
to:
Code:
$list_box_contents = array();
Bookmarks