mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Initialise $fieldtocount to fix PhanUndeclaredVariableAssignOp
This commit is contained in:
parent
707e0dbd87
commit
cf952d3fde
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user