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

@@ -18,11 +18,11 @@ class DashboardLayoutGrid extends \DashboardLayout
$oDashboardGrid = new DashboardGrid();
$oDashboardLayout->SetGrid($oDashboardGrid);
foreach ($aDashlets as $sDashletId => $aPosDashlet) {
foreach ($aDashlets as $aPosDashlet) {
/** @var \Dashlet $oDashlet */
$oDashlet = $aPosDashlet['dashlet'];
if ($oDashlet::IsVisible()) {
$oDashlet->SetID($sDashletId);
$sDashletId = $oDashlet->GetID();
$sDashletClass = get_class($oDashlet);
$aDashletDenormalizedProperties = $oDashlet->GetDenormalizedProperties();
$aDashletsInfo = $sDashletClass::GetInfo();