Commit 7a02d343 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 43635a6a
......@@ -310,10 +310,10 @@ class tx_nG6_eid {
if ($mparts[0] != "taxlevel" and $mparts[0] != "0") {
// If this guy doesnt exist yet
$id_searched = str_replace(".", "_", "node_".$mparts[1]);
if ($doc->getElementById($id_searched) == null) {
if (is_null($doc->getElementById($id_searched))) {
$parentl = implode("_", array_slice(explode(".", $mparts[1]), 0, -1));
// If no parent yet, this is the root
if ($doc->getElementById("node_".$parentl) == null) {
if (is_null($doc->getElementById("node_".$parentl))) {
$current_node = $doc->createElement('node');
$current_node->setAttribute("name", $mparts[2]);
$current_node->setAttribute("g", $mparts[4]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment