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:
parent
79f0a84d91
commit
3e5a8e777d
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue