Changed the semantic of the display argument
authorJoey Schulze <joey@infodrom.org>
Fri, 16 Mar 2007 15:37:03 +0000 (15:37 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 16 Mar 2007 15:37:03 +0000 (15:37 +0000)
src/InfoCon/account/account.inc
src/InfoCon/account/index.wml

index 2239cc1..a85bbd9 100644 (file)
@@ -36,7 +36,7 @@
     $query = "SELECT DISTINCT $table.blz_kto,name "
             ."FROM $table,account_names "
             ."WHERE $table.blz_kto = account_names.blz_kto "
-           ."AND display = $display "
+           ."$display "
            ."ORDER BY name";
     $sth = pg_exec ($dbh, $query) or die("Datenbank-Abfrage!");
 
index 1679ab7..af9c6b6 100644 (file)
@@ -11,7 +11,7 @@ Die folgenden Konten stehen zur Verf
 
 <p><ul>
 <?
-  $accounts = account_names ($dbh, 1, "eur");
+  $accounts = account_names ($dbh, "AND display = 1", "eur");
 
   foreach ($accounts as $kto => $name) {
     printf ("<li><a href=\"query.php?blzkto=%s\">%s</a> (Stand: %6.2f EUR)",