Fix: Initialise $fieldtocount to fix PhanUndeclaredVariableAssignOp

This commit is contained in:
MDW 2024-03-18 12:23:37 +01:00
parent 707e0dbd87
commit cf952d3fde
No known key found for this signature in database

View File

@ -390,6 +390,7 @@ if ($action == 'viewgraph') {
// Get all possible values of fields when a 'group by' is set, and save this into $arrayofvaluesforgroupby
// $arrayofvaluesforgroupby will be used to forge lael of each grouped series
if (is_array($search_groupby) && count($search_groupby)) {
$fieldtocount = '';
foreach ($search_groupby as $gkey => $gval) {
$gvalwithoutprefix = preg_replace('/^[a-z]+\./', '', $gval);