Added support for people who are supporters not primarily
authorJoey Schulze <joey@infodrom.org>
Mon, 30 Jun 2003 06:16:31 +0000 (06:16 +0000)
committerJoey Schulze <joey@infodrom.org>
Mon, 30 Jun 2003 06:16:31 +0000 (06:16 +0000)
src/LinuxTag/2003/supporter/availability.wml

index 44c3de5..a8a21d1 100644 (file)
   $person = array ();
 
   if ($limitation != 1) {
-    $query = "SELECT oid,name FROM person WHERE project = 'Supporter' ORDER BY upper(name)";
+    $query = "SELECT person.oid,name FROM person,junction "
+           ."WHERE junction.person = person.name AND junction.project='Supporter' "
+           ."ORDER BY upper(name)";
+
     $sth = pg_exec ($dbh, $query) or die ("Datenbank-Abfrage!");
 
     for ($nr = 0; $nr < pg_NumRows($sth); $nr++)