<h4>Pet Registry Save Fix</h4><ul><li><strong>Fixed:</strong> "Unknown Error" alert when saving a pet — addPetAction (line 305) accessed $id[0]["BreedID"] when the breed query returned empty array (breed doesnt match pet type). PHP warning before JSON caused jQuery dataType:json to fail, triggering the error callback. Added empty() check with null fallback.</li><li><strong>Fixed:</strong> Same pattern in updatePetAction (line 431) — getBreedWithParam() returns null when breed not found, then $getbreed["BreedID"] crashes. Added null guard.</li></ul>