From 688f51d82b65e837996c58a93d523fe3acac4744 Mon Sep 17 00:00:00 2001 From: Malamalca Date: Sat, 5 Oct 2024 19:37:16 +0200 Subject: [PATCH] Dashboard fix age display when full date available --- src/View/Helper/FamireeHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Helper/FamireeHelper.php b/src/View/Helper/FamireeHelper.php index 7be6ed5..4743632 100644 --- a/src/View/Helper/FamireeHelper.php +++ b/src/View/Helper/FamireeHelper.php @@ -116,7 +116,7 @@ public function getMonthNames() */ public function age($dateString) { - if (strlen($dateString) == 4) { + if (is_string($dateString) && strlen($dateString) == 4) { $dateString .= '-12-31'; }