Commit 38f5c056 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix uninitialized var

parent 4a8b6cae
......@@ -46,8 +46,9 @@ function alias_make_table($config)
if (isset($config['aliases']['alias'])) {
foreach ($config['aliases']['alias'] as $alias) {
if ($alias['name'])
$aliastable[$alias['name']] = $alias['address'];
if ($alias['name']) {
$aliastable[$alias['name']] = isset($alias['address']) ? $alias['address'] : null;
}
}
}
}
......
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