Commit 78eadf31 authored by Ad Schellevis's avatar Ad Schellevis
parent 91a6e982
......@@ -998,12 +998,13 @@ function alias_get_type($name) {
function alias_expand($name) {
global $aliastable;
if (isset($aliastable[$name]))
if (array_key_exists($name, $aliastable)) {
return "\${$name}";
else if (is_ipaddr($name) || is_subnet($name) || is_port($name) || is_portrange($name))
} elseif (is_ipaddr($name) || is_subnet($name) || is_port($name) || is_portrange($name)) {
return "{$name}";
else
} else {
return null;
}
}
function subnet_size($subnet) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment