summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-07 07:29:23 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-07 07:29:23 +0000
commit54d0948f25c149d88d9b29d2f48d7caf6486054c (patch)
treec8caca0c87bfcf5d62538ba2f891d1b62a5a749e /includes
parent8630e5ed51592c050860e9b2e6c9b235ef85c917 (diff)
downloadbrdo-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.inc2
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'));