diff --git a/hwe/a_bestGeneral.php b/hwe/a_bestGeneral.php index 95782bf9..4bc2c8ca 100644 --- a/hwe/a_bestGeneral.php +++ b/hwe/a_bestGeneral.php @@ -176,7 +176,7 @@ $templates = new \League\Plates\Engine('templates'); foreach($types as $idx=>[$typeName, $typeValue, $typeFunc]){ $validCnt = 0; - $typeGenerals = array_map(function($general) use($typeValue, $typeFunc, $validCnt){ + $typeGenerals = array_map(function($general) use($typeValue, $typeFunc, &$validCnt){ $general = ($typeFunc)($general); $value = $general['value'];