? uchotel-647486.patch
Index: hotel_booking/hotel_booking.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_hotel/hotel_booking/hotel_booking.install,v
retrieving revision 1.2
diff -u -p -r1.2 hotel_booking.install
--- hotel_booking/hotel_booking.install 5 Nov 2009 09:23:12 -0000       1.2
+++ hotel_booking/hotel_booking.install 1 Dec 2009 10:38:35 -0000
@@ -266,6 +266,11 @@ function hotel_booking_schema() {
 }


+function hotel_booking_update_6100() {
+  variable_set('hotel_booking_no_search_results', t('<p>Please select different dates and try your search again.</p>'));
+  return array();
+}
+
 /**
  * Implementation of hook_install().
  */
@@ -284,6 +289,7 @@ function hotel_booking_install() {
   variable_set('hotel_booking_reward_prompt', NULL);
   variable_set('hotel_booking_upgrade_product_classes', NULL);
   variable_set('hotel_booking_best_rate', NULL);
+  variable_set('hotel_booking_no_search_results', t('<p>Please select different dates and try your search again.</p>'));
 }

 /**
@@ -303,4 +309,5 @@ function hotel_booking_uninstall() {
   variable_del('hotel_booking_reward_prompt');
   variable_del('hotel_booking_upgrade_product_classes');
   variable_del('hotel_booking_best_rate');
+  variable_del('hotel_booking_no_search_results');
 }
Index: hotel_booking/hotel_booking.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_hotel/hotel_booking/hotel_booking.module,v
retrieving revision 1.8
diff -u -p -r1.8 hotel_booking.module
--- hotel_booking/hotel_booking.module  1 Dec 2009 02:10:13 -0000       1.8
+++ hotel_booking/hotel_booking.module  1 Dec 2009 10:38:35 -0000
@@ -505,11 +505,15 @@ function hotel_search_view($args) {
     $content .= ' hotelsearch-noresults';
   }
   $content .= '">';
-  $content .= 'Your search returned '. count($sorted_rates) .' result';
+  $content .= '<p>Your search returned '. count($sorted_rates) .' result';
   if (count($sorted_rates) != 1) {
     $content .= 's';
   }
-  $content .= '.</div>';
+  $content .= '.</p>';
+  if (count($sorted_rates) < 1) {
+    $content .= variable_get('hotel_booking_no_search_results', t('<p>Please select different dates and try your search again.</p>'));
+  }
+  $content .= '</div>';
   $resultcount = 0;
   foreach ($sorted_rates as $rtid => $total) {
       $node = node_load($rtid);
Index: hotel_booking/hotel_booking_admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_hotel/hotel_booking/hotel_booking_admin.inc,v
retrieving revision 1.5
diff -u -p -r1.5 hotel_booking_admin.inc
--- hotel_booking/hotel_booking_admin.inc       1 Dec 2009 02:10:13 -0000       1.5
+++ hotel_booking/hotel_booking_admin.inc       1 Dec 2009 10:38:35 -0000
@@ -102,6 +102,12 @@ function hotel_booking_admin_settings()
     '#default_value' => variable_get('hotel_booking_sort_order', 'ASC'),
     '#description' => t('The order to sort room search results.'),
   );
+  $form['search']['no_search_results'] = array(
+    '#type'        => 'textarea',
+    '#title'       => t('Empty Search Result Message'),
+    '#default_value' => variable_get('hotel_booking_no_search_results',  t('<p>Please select different dates and try your search again.</p>')),
+    '#description' => t('This text will be displayed to users when a search returns no results. HTML is valid in this textarea.<br /><strong>Note:</strong> This will always be preceeded by <i>Your search returned 0 results.</i>'),
+  );
   $form['expiry'] = array(
     '#type'        => 'fieldset',
     '#title'       => t('Expiry Settings'),
@@ -160,7 +166,7 @@ function hotel_booking_admin_settings_su
   variable_set('hotel_booking_best_rate', $form_state['values']['best_rate_link']);
   variable_set('hotel_booking_addons_page_title', $form_state['values']['page_title']);
   variable_set('hotel_booking_addons_page_text', $form_state['values']['page_text']);
-
+  variable_set('hotel_booking_no_search_results', $form_state['values']['no_search_results']);
   drupal_set_message(t('Settings have been saved.'));
 }

