diff --git a/src/UI/Dashboard/ParentDashboard.php b/src/UI/Dashboard/ParentDashboard.php index 7897dde1ef..3f6e506cb4 100644 --- a/src/UI/Dashboard/ParentDashboard.php +++ b/src/UI/Dashboard/ParentDashboard.php @@ -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 .= "