diff options
-rw-r--r-- | includes/form.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/form.inc b/includes/form.inc index 38ef41cf0..2dffe84cb 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -2853,9 +2853,9 @@ function form_process_date($element) { /** * Validates the date type to stop dates like February 30, 2006. */ -function date_validate($form) { - if (!checkdate($form['#value']['month'], $form['#value']['day'], $form['#value']['year'])) { - form_error($form, t('The specified date is invalid.')); +function date_validate($element) { + if (!checkdate($element['#value']['month'], $element['#value']['day'], $element['#value']['year'])) { + form_error($element, t('The specified date is invalid.')); } } |