OK, so I think I've narrowed down the problem - it looks like getFavpetID() is NOT returning a 0 when there is no favourite pet assigned. Which is particularly strange, seeing as I poked through the databases, and it most certainly SHOULD be returning a zero.
|