Commit 2cb7dc04 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) url alias doesn't contain an address, closes https://github.com/opnsense/core/issues/457

parent b383bdd4
...@@ -978,8 +978,7 @@ function mwexec_bg($command, $mute = false) ...@@ -978,8 +978,7 @@ function mwexec_bg($command, $mute = false)
/* check if an alias exists */ /* check if an alias exists */
function is_alias($name) { function is_alias($name) {
global $aliastable; global $aliastable;
return array_key_exists($name, $aliastable);
return isset($aliastable[$name]);
} }
function alias_get_type($name) { function alias_get_type($name) {
......
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