broadcast-message.php: fix hard coded table names

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@643 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 4d54548b72
commit e97bad87ab

@ -45,9 +45,11 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
}
else
{
$q = 'select username from mailbox union '.
'select goto from alias '.
'where goto not in (select username from mailbox)';
$table_mailbox = table_by_key('mailbox');
$table_alias = table_by_key('alias');
$q = "select username from $table_mailbox union select goto from $table_alias " .
"where goto not in (select username from $table_mailbox)";
$result = db_query ($q);
if ($result['rows'] > 0)

Loading…
Cancel
Save