Skip to content

Commit

Permalink
System: fix PHP warning on parent dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed May 8, 2024
1 parent 3a8d353 commit ec22e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UI/Dashboard/ParentDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ protected function renderChildDashboard($gibbonPersonID, $dateStart)

$defaultTab = preg_replace('/[^0-9]/', '', $_GET['tab'] ?? 0);

if (!isset($_GET['tab']) && !is_null($parentDashboardDefaultTabCount)) {
if (!isset($_GET['tab']) && !empty($parentDashboardDefaultTabCount)) {
$defaultTab = $parentDashboardDefaultTabCount-1;
}
$return .= "<script type='text/javascript'>";
Expand Down

0 comments on commit ec22e35

Please sign in to comment.