From 9b596b8520263e8e8492acf460bdbb0c3177a757 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sat, 6 Sep 2008 20:32:17 +0000 Subject: [PATCH] fetchmail.php: clearly two sets of eyes are better than one; thanks niki git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@461 a1433add-5e2c-0410-b055-b7f2511e0802 --- fetchmail.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fetchmail.php b/fetchmail.php index 86e06401..ef70d0d2 100644 --- a/fetchmail.php +++ b/fetchmail.php @@ -89,11 +89,13 @@ $fm_defaults=array( array('POP3','IMAP','POP2','ETRN','AUTO'), ); +$table_fetchmail = table_by_key('fetchmail'); +$table_mailbox = table_by_key('mailbox'); $list_domains = list_domains_for_admin ($SESSID_USERNAME); $user_domains=implode(", ",array_values($list_domains)); # for displaying $user_domains_sql=implode("','",escape_string(array_values($list_domains))); # for SQL -$sql="SELECT username FROM mailbox WHERE domain in ('".$user_domains_sql."')"; # TODO: replace with domain selection dropdown +$sql="SELECT username FROM $table_mailbox WHERE domain in ('".$user_domains_sql."')"; # TODO: replace with domain selection dropdown $res = db_query ($sql); if ($res['rows'] > 0){ @@ -114,7 +116,6 @@ if ($delete) { $row_id = $edit; } -$table_fetchmail = table_by_key('fetchmail'); if ($row_id) { $result = db_query ("SELECT ".implode(",",escape_string(array_keys($fm_struct)))." FROM $table_fetchmail WHERE id=" . $row_id);