Re: Listing objects



Oh, forgot to update $temp here:

$temp = $this->parent;
while (isset($temp)) {
  if ($this->data->id == $temp->control->data->id) {
     echo "error";
     return;
  }
  $temp = $temp->owner;
}

Also, it does not work because $temp->control->data is null. However, if $this->data is accessed from $temp->control, it is instantiated..

luph
.


Quantcast