I'll try that! Thanks! ^_^
EDIT: I got rid of the 'if' and it made all users have a white page.. maybe that's why it is needed? I dunno XD
EDIT2: Yay! I fixed it! It was fixed when I did this:
PHP Code:
public function getFavpet(){
if(is_numeric($this->favpet) && $this->favpet != 0){
$adopty = new OwnedAdoptable($this->favpet);
$favimg = $adopty->getImage();
$this->favpet = new Link("levelup/click/{$this->favpet}", new Image($favimg), TRUE);
}
elseif($this->favpet == 0) {
$this->favpet = new Comment("None Selected");
}
return $this->favpet;
}
I put another equals in front of the 0 after the 'elseif'.
Thank you!! ^_^