3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Only clean up numeric entity IDs in farm_plan_entity_delete().

This commit is contained in:
Michael Stenta 2019-10-15 15:43:12 -04:00
parent 79f0a84d91
commit 3e5a8e777d

View file

@ -964,6 +964,11 @@ function farm_plan_entity_delete($entity, $type) {
return;
}
// If the entity ID is not numeric, bail.
if (!is_numeric($entity_id)) {
return;
}
// Get available relationships between plans and other record types.
$relationships = farm_plan_record_relationships();