View Single Post
  #10  
Old 12-07-2014, 02:46 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 17,644
parayna is on a distinguished road
Default

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!! ^_^

Last edited by parayna; 12-07-2014 at 02:49 PM.
Reply With Quote