Index: reservations.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/reservations/reservations.module,v
retrieving revision 1.1
diff -u -r1.1 reservations.module
--- reservations.module 29 Jul 2009 05:57:56 -0000  1.1
+++ reservations.module 6 Sep 2009 00:11:25 -0000
@@ -372,8 +372,8 @@
 
   $output = theme('reservations_availability', $available_nodes, $form_state['values']);
 
-/*   kpr(array($form, $form_state, $node, $_REQUEST)); */
-  if ($_REQUEST['ajax'] == 1) {
+//  kpr(array($form, $form_state, $node, $_REQUEST));
+  if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] == 1) {
     print $output;
     exit();
   }
@@ -673,7 +673,7 @@
             'class' => 'unitlink'
           ), 
           $node->occupancy,
-          uc_price($node->available->price, array()) .' '. $confirmation,
+          uc_price($node->available->price, array()),
           l(t('Book now'), 'booknow/reservations/'. $node->nid .'/'. $unit_db['arrive_db'] .'/'. $unit_db['depart_db'] .'/'. $node->available->iid .'/'. $edit['num_people'], array('class' => 'booknow')), 
         ), 
       );
Index: unit.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/reservations/unit.module,v
retrieving revision 1.1
diff -u -r1.1 unit.module
--- unit.module 29 Jul 2009 05:57:56 -0000  1.1
+++ unit.module 6 Sep 2009 00:11:26 -0000
@@ -254,6 +254,7 @@
  */
 function unit_get_available($node) {
 
+  $event = array();
   $today = getdate();
   $node->displaymonth = _reservations_pad($today['mon']) . $today['year'];
 
@@ -361,7 +362,7 @@
     '#type' => 'textfield',
     '#description' => 'dd/mm/YYYY',
     '#title' => t('From date'),
-    '#default_value' => $edit['rangestart'],
+    '#default_value' => isset($edit['rangestart']) ? $edit['rangestart'] : '',
     '#size' => 10,
     '#maxlength' => 10,
   );
@@ -369,7 +370,7 @@
     '#type' => 'textfield',
     '#description' => 'dd/mm/YYYY',
     '#title' => t('To date'),
-    '#default_value' => $edit['rangeend'],
+    '#default_value' => isset($edit['rangeend']) ? $edit['rangeend'] : '',
     '#size' => 10,
     '#maxlength' => 10,
   );
@@ -391,7 +392,7 @@
   $form['dates']['price'] = array(
     '#type' => 'textfield',
     '#title' => t('Price'),
-    '#default_value' => $edit['price'],
+    '#default_value' => isset($edit['price']) ? $edit['price'] : '',
     '#size' => 7,
     '#maxlength' => 7,
     '#description' => t('The new price.'),
@@ -534,6 +535,8 @@
 
   $header = date_week_days_ordered( date_week_days_abbr(FALSE, TRUE, 1));
   $header_string = array_shift($header);
+  $tableoutput = '';
+  $output = '';  
 
   global $base_root;
   global $user;
@@ -604,7 +607,7 @@
             // Available
             // Get class for cell decoration
             $class = "";
-            if ($event[$curyear][$curmonth][$day]->status != 0) {
+            if (isset($event[$curyear][$curmonth][$day]->status) && $event[$curyear][$curmonth][$day]->status != 0) {
               if ($event[$curyear][$curmonth][$day]->status == 1) {
                 $class = "available". $class;
               }
@@ -974,7 +977,7 @@
  * @param unknown $node
  */
 function unit_breadcrumb($node) {
-  if (!$node->unit) {
+  if (! isset($node->unit)) {
     return;
   }
 
