? test.patch
? archive/_________station_archive.install
? archive/____station_archive.module
? catalog/The Database.mdb
? catalog/fixit.php
? catalog/import.php
Index: schedule/views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/station/schedule/views.inc,v
retrieving revision 1.6.2.2
diff -u -p -u -p -r1.6.2.2 views.inc
--- schedule/views.inc	10 Aug 2007 17:22:34 -0000	1.6.2.2
+++ schedule/views.inc	14 Sep 2007 18:19:20 -0000
@@ -141,17 +141,15 @@ function station_handler_field_listen_li
 function station_handler_filter_is_scheduled($op, $filterdata, $filterinfo, &$query) {
   switch ($op) {
   case 'handler':
-    $query->ensure_table('node');
-    $query->add_field('nid', 'node');
+    $query->ensure_table('station_schedule_item');
     if ($filterdata['operator']) {
-      $query->add_where('EXISTS (SELECT * FROM {station_schedule} WHERE {station_schedule}.program_nid = node.nid)');
+      $query->add_where('{station_schedule_item}.program_nid IS NOT NULL');
     }
     else {
-      $query->add_where('NOT EXISTS (SELECT * FROM {station_schedule} WHERE {station_schedule}.program_nid = node.nid)');
+      $query->add_where('{station_schedule_item}.program_nid IS NULL');
     }
     break;
   }
-  return;
 }
 
 /**
@@ -172,5 +170,4 @@ function station_handler_filter_now_play
     $query->add_where('EXISTS (SELECT * FROM {station_schedule} WHERE {station_schedule}.program_nid = node.nid AND {station_schedule}.start <= %d AND {station_schedule}.finish > %d)', $minute, $minute);
     break;
   }
-  return;
 }
