fix warnings

This commit is contained in:
Eric Espie
2026-01-15 10:44:20 +01:00
parent 50ffaa2b55
commit 4d9e18890a
4 changed files with 11 additions and 8 deletions

View File

@@ -1093,10 +1093,10 @@ abstract class DashletGroupBy extends Dashlet
$sGroupBy = $this->aProperties['group_by'];
$this->sAggregationFunction = $this->aProperties['aggregation_function'];
$this->sAggregationAttribute = $this->aProperties['aggregation_attribute'];
$this->sAggregationAttribute = $this->aProperties['aggregation_attribute'] ?? '';
$this->sLimit = $this->aProperties['limit'];
$this->sOrderBy = $this->aProperties['order_by'];
$this->sLimit = $this->aProperties['limit'] ?? 0;
$this->sOrderBy = $this->aProperties['order_by'] ?? null;
if (empty($this->sOrderBy)) {
if ($this->aProperties['style'] == 'pie') {
$this->sOrderBy = 'function';