Re: Listing objects
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Listing objects

From: Lüpher Cypher <lupher.cypher@verizon.net>
Date: Fri Dec 30 2005 - 15:51:41 CET

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
Received on Tue Jan 3 03:50:23 2006