[SOGo, Dovecot] Remove unnecessary likes from sql queries

[Web] Filter transport destinations to prevent empty destinations
This commit is contained in:
andryyy
2020-09-20 22:21:00 +02:00
parent 4627331339
commit 3a9efc86cf
2 changed files with 2 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ function transport($_action, $_data = null) {
}
}
}
$destinations = array_values(array_unique($destinations));
$destinations = array_filter(array_values(array_unique($destinations)));
if (empty($destinations)) { return false; }
if (isset($next_hop_matches[1])) {
if (in_array($next_hop_clean, $existing_nh)) {