Test to try a fix

This commit is contained in:
Laurent Destailleur 2009-01-29 21:04:00 +00:00
parent ce6f8a1c81
commit 1ec3fb6aa9

View File

@ -189,9 +189,12 @@ if ($conf->use_javascript_ajax)
} }
//echo $nodeparent."|"; //echo $nodeparent."|";
//print 'x'.$cate_arbo[$key]['fullpath'].' expand='.$newelement['expanded'].'<br>'; //print 'x'.$cate_arbo[$key]['fullpath'].' expand='.$newelement['expanded'].'<br>';
if (is_object($node[$nodeparent])) // Should not happen but occurs on some users.
{
$node[$cate_arbo[$key]['fullpath']]=&$node[$nodeparent]->addItem(new HTML_TreeNode($newelement)); $node[$cate_arbo[$key]['fullpath']]=&$node[$nodeparent]->addItem(new HTML_TreeNode($newelement));
//print 'Resultat: noeud '.$cate_arbo[$key]['fullpath']." créé<br>\n"; //print 'Resultat: noeud '.$cate_arbo[$key]['fullpath']." créé<br>\n";
} }
}
$menu->addItem($node[$rootnode]); $menu->addItem($node[$rootnode]);