Index: bookingsapi.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bookingsapi/bookingsapi.module,v
retrieving revision 1.13
diff -u -p -r1.13 bookingsapi.module
--- bookingsapi.module	1 Oct 2008 02:52:18 -0000	1.13
+++ bookingsapi.module	27 Mar 2009 11:19:51 -0000
@@ -287,7 +287,7 @@ function bookingsapi_conflict_check($rec
     // is entirely filled by availability records
     $interval_sql = '';
     foreach ($intervals as $i) {
-      $sql .= "('{$i[0]}' BETWEEN start and end AND '{$i[1]}' BETWEEN start and end) OR ";
+      $interval_sql .= "('{$i[0]}' BETWEEN start and end AND '{$i[1]}' BETWEEN start and end) OR ";
     }
     $interval_sql = substr($interval_sql, 0, -3);
     $sql = "SELECT UNIX_TIMESTAMP(start) as startts, UNIX_TIMESTAMP(end) as endts FROM {bookings_schedules} WHERE resource_id={$record['resource_id']} AND type IN (4,5) AND ($interval_sql) ORDER BY start asc";
@@ -807,4 +807,4 @@ function bookingsapi_views_handlers() {
       ),
     ),
   );
-}
\ No newline at end of file
+}
