From 7c0d74930927c837225710f89591cba93d16ac5f Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 28 Aug 2017 21:13:47 +0200 Subject: [PATCH] Fix in date2sql function. --- includes/date_functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/date_functions.inc b/includes/date_functions.inc index 7aa16acc..c0bcbe94 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -383,10 +383,10 @@ and converts to a yyyy/mm/dd format */ $how = user_date_format(); $sep = $SysPrefs->dateseps[user_date_sep()]; + $date_ = trim($date_); if ($date_ == null || strlen($date_) == 0) return ""; - $date_ = trim($date_); $year = $month = $day = 0; // Split up the date by the separator based on "how" to split it if ($how == 0 || $how == 3) // MMDDYYYY or MmmDDYYYY -- 2.30.2