setParent fix
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index b3b8770d93b86a80d90146d774ae777fe0fd0023..7b6537221a32c7fd731c9cc44d16163084aa2286 100644 (file)
@@ -320,8 +320,7 @@ function setParent($node_id,$parent_id) {
         $parent_vector=$set->getString('node_vector');
         $new_vector=$parent_vector.str_pad($node_id,VECTOR_CHARS,"0",STR_PAD_LEFT);
 
-       $q="update nodes set node_parent='$parent_id',node_vector='".$new_vector."
-               ' where node_id='$node_id'";
+       $q="update nodes set node_parent='$parent_id',node_vector='$new_vector' where node_id='$node_id'";
        $db->query($q);
 }
 
This page took 0.088565 seconds and 4 git commands to generate.