Fixed PHP Warnings.

This commit is contained in:
mdtrooper 2016-01-19 15:31:27 +01:00
parent 6a08273f24
commit 1e0e18a399
1 changed files with 9 additions and 3 deletions

View File

@ -894,9 +894,15 @@ if ($update_module || $create_module) {
$macros = json_decode(base64_decode($macros), true);
foreach($macros as $k => $m) {
if ($m['hide'] == "1") {
$macros[$k]['value'] = io_input_password(get_parameter($m['macro'], ''));
} else {
$m_hide = "0";
if (isset($m['hide'])) {
$m_hide = $m['hide'];
}
if ($m_hide == "1") {
$macros[$k]['value'] =
io_input_password(get_parameter($m['macro'], ''));
}
else {
$macros[$k]['value'] = get_parameter($m['macro'], '');
}
}