Commit 8fde7fab authored by Franco Fichtner's avatar Franco Fichtner

src: fix `Illegal string offset' warning in wizard

parent 903eb61c
......@@ -802,13 +802,15 @@ function showchange() {
$aliases = "";
$addrisfirst = 0;
$aliasesaddr = "";
if($config['aliases']['alias'] <> "" and is_array($config['aliases']['alias']))
foreach($config['aliases']['alias'] as $alias_name) {
if($isfirst == 1)
if (isset($config['aliases']['alias'])) {
foreach ($config['aliases']['alias'] as $alias_name) {
if ($isfirst == 1) {
$aliases .= ",";
}
$aliases .= "'" . $alias_name['name'] . "'";
$isfirst = 1;
}
}
?>
var customarray=new Array(<?php echo $aliases; ?>);
......
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