Index: /Users/nate/Sites/lullabot/v1/public_html/includes/form.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/form.inc,v retrieving revision 1.174.2.3 diff -u -r1.174.2.3 form.inc --- form.inc 29 Jan 2007 21:51:53 -0000 1.174.2.3 +++ form.inc 10 Feb 2007 05:24:34 -0000 @@ -526,10 +526,7 @@ /* Validate the current input */ if (!isset($elements['#validated']) || !$elements['#validated']) { if (isset($elements['#needs_validation'])) { - // An empty textfield returns '' so we use empty(). An empty checkbox - // and a textfield could return '0' and empty('0') returns TRUE so we - // need a special check for the '0' string. - if ($elements['#required'] && empty($elements['#value']) && $elements['#value'] !== '0') { + if ($elements['#required'] && strlen(trim($elements['#value'])) == 0) { form_error($elements, t('!name field is required.', array('!name' => $elements['#title']))); }