From f7e9ecd1c15850439a950a501406f01af48dd36c Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 9 Nov 2023 16:18:24 +0530 Subject: [PATCH] Update default value --- controllers/admin/AdminCustomersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index e4eaac7de..695de6a3b 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -976,8 +976,8 @@ class AdminCustomersControllerCore extends AdminController if ($years != '' && $months != '' && $days != '') { $object->birthday = (int) $years.'-'.(int) $months.'-'.(int) $days; - } elseif ($years == '' && $months == '' && $days == '') { - $object->birthday = null; + } else { + $object->birthday = '0000-00-00'; } }