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:
parent
94e999d01d
commit
31cfe1686e
1 changed files with 1 additions and 0 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue