diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-05-07 07:29:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-05-07 07:29:23 +0000 |
commit | 54d0948f25c149d88d9b29d2f48d7caf6486054c (patch) | |
tree | c8caca0c87bfcf5d62538ba2f891d1b62a5a749e /includes | |
parent | 8630e5ed51592c050860e9b2e6c9b235ef85c917 (diff) | |
download | brdo-54d0948f25c149d88d9b29d2f48d7caf6486054c.tar.gz brdo-54d0948f25c149d88d9b29d2f48d7caf6486054c.tar.bz2 |
- Patch #133189 by Darren Oh: fixed empty date field test.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index dce3e22d4..2796481fc 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1187,7 +1187,7 @@ function theme_date($element) { */ function expand_date($element) { // Default to current date - if (!isset($element['#value'])) { + if (empty($element['#value'])) { $element['#value'] = array('day' => format_date(time(), 'custom', 'j'), 'month' => format_date(time(), 'custom', 'n'), 'year' => format_date(time(), 'custom', 'Y')); |