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,8 +189,11 @@ 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>';
$node[$cate_arbo[$key]['fullpath']]=&$node[$nodeparent]->addItem(new HTML_TreeNode($newelement)); if (is_object($node[$nodeparent])) // Should not happen but occurs on some users.
//print 'Resultat: noeud '.$cate_arbo[$key]['fullpath']." créé<br>\n"; {
$node[$cate_arbo[$key]['fullpath']]=&$node[$nodeparent]->addItem(new HTML_TreeNode($newelement));
//print 'Resultat: noeud '.$cate_arbo[$key]['fullpath']." créé<br>\n";
}
} }
$menu->addItem($node[$rootnode]); $menu->addItem($node[$rootnode]);