mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
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
This commit is contained in:
1 parent
0fa1614dad
commit
5c9e2e772a
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user