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

Fix Notice: Undefined variable: options in farm_livestock_weight_group_report_form()

This commit is contained in:
Michael Stenta 2020-04-16 10:47:19 -04:00
parent 94e999d01d
commit 31cfe1686e

View file

@ -160,6 +160,7 @@ function farm_livestock_weight_group_report_form($form, &$form_state) {
$query->propertyCondition('archived', 0);
// Execute the query and build a list of options.
$options = array();
$result = $query->execute();
if (isset($result['farm_asset'])) {
$group_ids = array_keys($result['farm_asset']);