mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
rework php 7.1 warning, e5da72baa3 (commitcomment-26124201)
This commit is contained in:
parent
e95e256227
commit
4914cce276
@ -1400,9 +1400,8 @@ function filter_nat_rules_generate(&$FilterIflist)
|
||||
}
|
||||
|
||||
/* if item is an alias, expand */
|
||||
$dstport = array();
|
||||
$dstport[0] = alias_expand($rule['destination']['port']);
|
||||
if (!$dstport[0]) {
|
||||
$dstport = array(alias_expand($rule['destination']['port']));
|
||||
if (empty($dstport[0])) {
|
||||
$dstport = explode("-", $rule['destination']['port']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user