Fix issue with checkbox in broadcast

pull/24/head
Jan-Frederik Rieckers 8 years ago
parent 5712a35f71
commit 54532e7cee
No known key found for this signature in database
GPG Key ID: 664B03955EA04DEF

@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$recipients = [];
$q = "SELECT username from $table_mailbox WHERE ".db_in_clause("domain", $wanted_domains);
if(!isset($_POST['mailboxes_only']) || $_POST['mailboxes_only'] != "on") {
if (intval(safepost('mailboxes_only')) == 0) {
$q .= " UNION SELECT goto FROM $table_alias WHERE ".db_in_clause("domain", $wanted_domains)."AND goto NOT IN ($q)";
}
$result = db_query($q);

@ -23,7 +23,7 @@
</tr>
<tr>
<td class="label"><label>{$PALANG.broadcast_mailboxes_only}</label></td>
<td><input type="checkbox" name="mailboxes_only"/></td>
<td><input type="checkbox" value="1" name="mailboxes_only"/></td>
</tr>
<tr>
<td class="label"><label>{$PALANG.broadcast_to_domains}</label></td>

Loading…
Cancel
Save