Index: publicbookings.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/publicbookings/publicbookings.module,v
retrieving revision 1.9
diff -u -p -r1.9 publicbookings.module
--- publicbookings.module 1 Oct 2008 02:44:18 -0000 1.9
+++ publicbookings.module 28 Mar 2009 22:56:33 -0000
@@ -304,8 +304,16 @@ function publicbookings_conflict_check(&
$status_type = bookingsapi_record_status($record['status']);
// prepare table row HTML
- $status_name = $status_type == BOOKINGSAPI_STATUS_PENDING ? t('Pending ') : t('Finalized ');
- $row = "
| {$status_name}{$typenames[$record_type]} | {$record['name']} | {$record['start']} | {$record['end']} |
";
+ if ( $status_type == BOOKINGSAPI_STATUS_PENDING ) {
+ $status_name = t('Pending');
+ } else {
+ $status_name = t('Finalized');
+ }
+ if ( is_array($record_type) ) {
+ $row = "| Unavailable Resource | | | |
";
+ } else {
+ $row = "| {$status_name}{$typenames[$record_type]} | {$record['name']} | {$record['start']} | {$record['end']} |
";
+ }
$is_pending_booking = $record_type == BOOKINGSAPI_BOOKING && $status_type == BOOKINGSAPI_STATUS_PENDING;
$is_flexible_unavailable = $record_type == BOOKINGSAPI_UNA_F;
@@ -531,4 +539,4 @@ function publicbookings_views_handlers()
),
),
);
-}
\ No newline at end of file
+}