Skip to content

Commit b8c9896

Browse files
author
Dominik
committed
fixed problem with nonempty array
1 parent a5c0466 commit b8c9896

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function update($event_name, $data) {
115115
$rbl_hosts = explode(",", $rbl_hosts);
116116
}
117117
$options = explode(", ", exec("postconf -h smtpd_recipient_restrictions"));
118+
$new_options = array();
118119
foreach ($options as $key => $value) {
119120
if (!preg_match('/reject_rbl_client/', $value)) {
120121
$new_options[] = $value;
@@ -140,6 +141,7 @@ function update($event_name, $data) {
140141

141142
if($mail_config['reject_sender_login_mismatch'] != $old_ini_data['mail']['reject_sender_login_mismatch']) {
142143
$options = explode(", ", exec("postconf -h smtpd_sender_restrictions"));
144+
$new_options = array();
143145
foreach ($options as $key => $value) {
144146
if (!preg_match('/reject_authenticated_sender_login_mismatch/', $value)) {
145147
$new_options[] = $value;

0 commit comments

Comments
 (0)