- $sql = "SELECT $this->padre
- FROM $this->tabla
- WHERE $this->id = '".$id."'";
- $id = $this->db->getOne($sql);
- $this->expandir[] = $id;
+ $id = $this->id_activo;
+ while($id != 0)
+ {
+ $sql = "SELECT $this->padre
+ FROM $this->tabla
+ WHERE $this->id = '".$id."'";
+ $id = $this->db->getOne($sql);
+ $this->expandir[] = $id;
+ }