I think the error is in the food item I included. I remember fixing it, but I don't think I fixed it before the last release. I'll fix it in the next release(hopefully in a few days) but for now, just do replace the whole getUseInput() function with this::
function getUseInput()
{
global $db_prefix, $ID_MEMBER;
$result = db_query("SELECT numpets FROM {$db_prefix}members WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__);
$row = mysql_fetch_assoc($result);
if ($row['numpets'] == 0) {
return "You have no pets. Using this item will simply cause it to die and you to lose money.";
}
$string .= "<select name = 'petid'>";
$result = db_query("SELECT * FROM {$db_prefix}shop_pets WHERE ownerid = {$ID_MEMBER}", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result)) {
$string .= "<option value = '{$row['pet_id']}'>{$row['name']}</option>";
}
$string .= "</select>";
return "Select a pet to give this item to: ".$string;
}