Skip to content

Commit

Permalink
(legacy) alias url issue, #457
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Nov 8, 2015
1 parent 91a6e98 commit 78eadf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/etc/inc/util.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 78eadf3

Please sign in to comment.