From c6137ca0dfe3b132feb8bbee1624376011837e86 Mon Sep 17 00:00:00 2001 From: irhen Date: Mon, 10 Jul 2017 14:17:06 +0300 Subject: [PATCH] is empty check --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/identity.php b/include/identity.php index 66f7f569f9..5de5c919dc 100644 --- a/include/identity.php +++ b/include/identity.php @@ -656,7 +656,7 @@ function advanced_profile(App $a) { $profile['birthday'] = array( t('Birthday:'), $val); } - if ($a->profile['dob'] + if (!empty($a->profile['dob']) && $a->profile['dob'] > '0001-01-01' && $age = age($a->profile['dob'], $a->profile['timezone'], '') ) { -- 2.39.5