Change line 85 to this:
PHP Code:
if ($profile->getFavpetID() == "0"){
And change line 96 to this:
PHP Code:
$this->FavPetSB->add(new Comment("<a href='/myadopts/manage/{$profile->getFavpetID()}'><img src='{$favpet->getImage()}'></a>"));
Using {$profile->getFavpetID()} instead of {$favpet} should help!! Sorry about this. Those two things should fix the errors, but--
Also! Two other things. I'd also change line 95 to:
PHP Code:
$this->FavPetSB->add(new Comment("{$message}"));
Because we're actually adding the div elsewhere now, oops.
And at 271, we should close the message like this now:
PHP Code:
if ($message == "") { $message = ""; } else { $message .= "</div>"; }
/**** END: CREATE RANDOM MESSAGES ****/