Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Seeking basic run down of php and database (http://www.mysidiaadoptables.com/forum/showthread.php?t=4757)

MikiHeart 01-19-2015 02:16 AM

Hey, a little update on the script I was working on. If the user updates their profile, and select no pet, it becomes set to 0, this this happens:

Code:

Fatal error: Uncaught exception 'AdoptNotfoundException' with message 'Adoptable ID 0 does not exist or does not belong to the owner specified...' in C:\wamp\www\micronoms\classes\class_ownedadoptable.php on line 26
( ! ) AdoptNotfoundException: Adoptable ID 0 does not exist or does not belong to the owner specified... in C:\wamp\www\micronoms\classes\class_ownedadoptable.php on line 26

I'll do some more work on it.

Edit:

I fixed it XD With one minor change!

From:
Code:

if ($this->userfavpet == "0"){
To:
Code:

if ($this->userfavpet == "0" or $this->userfavpet == ""){


All times are GMT -5. The time now is 10:09 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.