Index: office_hours.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/office_hours/office_hours.module,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 office_hours.module
--- office_hours.module	19 Jul 2008 20:31:21 -0000	1.1.2.4
+++ office_hours.module	21 Jul 2008 05:10:01 -0000
@@ -125,7 +125,7 @@ function office_hours_field_settings($op
         //'#options' => array('validatehrs'=> t('Check that closing hours are not earlier than opening hours')),
         '#required' => FALSE,
         '#default_value' => isset($field['valhrs']) ? $field['valhrs'] : 0,
-        '#description' => t('Please note that this will work as long as the opening hours are not through midnight.'),
+        '#description' => t('Check that closing hours are not earlier than opening hours. Please note that this will work as long as the opening hours are not through midnight.'),
       );
       return $form;
 
@@ -220,7 +220,7 @@ function office_hours_field($op, &$node,
        return theme('field', $node, $field, $items, $teaser, $page);
 
     case 'validate':
-    if (isset($field['valhrs'])) { 
+    if ($field['valhrs'] == 1 ) { 
          if (is_array($node_field)) {
         foreach ($node_field as $delta => $item) {
        $error_field = $field['field_name']. '][' .$delta. '][endhours';
