Skip to content

Commit

Permalink
documentation is wrong; 'id' doesn't exist as key
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 23, 2015
1 parent d1c0530 commit 9eb32ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions imp/lib/Tree/Jquerymobile.php
Expand Up @@ -55,7 +55,7 @@ protected function _buildTree($node_id)

if (empty($node['container']) &&
($node['special'] == $this->_isSpecial)) {
$output = $this->_buildTreeNode($node);
$output = $this->_buildTreeNode($node, $node_id);
}

if (!empty($node['children'])) {
Expand All @@ -69,16 +69,16 @@ protected function _buildTree($node_id)

/**
*/
protected function _buildTreeNode($node)
protected function _buildTreeNode($node, $id)
{
$output = '<li' .
(isset($node['class']) ? (' class="' . $node['class'] . '"') : '') .
'>';

if (isset($this->_extra[$node['id']][Horde_Tree_Renderer::EXTRA_LEFT])) {
if (isset($this->_extra[$id][Horde_Tree_Renderer::EXTRA_LEFT])) {
$output .= implode(
' ',
$this->_extra[$node['id']][Horde_Tree_Renderer::EXTRA_LEFT]
$this->_extra[$id][Horde_Tree_Renderer::EXTRA_LEFT]
);
}

Expand All @@ -101,9 +101,9 @@ protected function _buildTreeNode($node)
$output .= '</a>';
}

if (isset($this->_extra[$node['id']][Horde_Tree_Renderer::EXTRA_RIGHT])) {
if (isset($this->_extra[$id][Horde_Tree_Renderer::EXTRA_RIGHT])) {
$output .= '<span class="ui-li-count">' .
implode(' ', $this->_extra[$node['id']][Horde_Tree_Renderer::EXTRA_RIGHT]) .
implode(' ', $this->_extra[$id][Horde_Tree_Renderer::EXTRA_RIGHT]) .
'</span>';
}

Expand Down

0 comments on commit 9eb32ab

Please sign in to comment.