From 5c9e2e772a368d29a002f7cff50241e93e66505c Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 14 Mar 2011 19:05:00 +0000 Subject: [PATCH] list-domain.php - init $domain_properties() to avoid undefined variable warning (reported by makomi on IRC) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1002 a1433add-5e2c-0410-b055-b7f2511e0802 --- list-domain.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/list-domain.php b/list-domain.php index ff15d2b6..e93c3ff1 100644 --- a/list-domain.php +++ b/list-domain.php @@ -64,6 +64,7 @@ if ($list_all_domains == 1) { # fetch domain data and number of mailboxes # (PgSQL requires the extensive GROUP BY statement, https://sourceforge.net/forum/message.php?msg_id=7386240) +# TODO: SELECT domain.* -> domain.field1, domain.field2 -> see bugreport $query = " SELECT $table_domain.* , COUNT( DISTINCT $table_mailbox.username ) AS mailbox_count FROM $table_domain @@ -76,6 +77,7 @@ $query = " "; $result = db_query($query); +$domain_properties = array(); while ($row = db_array ($result['result'])) { $domain_properties[$row['domain']] = $row; }