[Web] Fix empty passwords for relayhosts

master
andre.peters 2018-01-01 09:17:49 +01:00
parent db032af698
commit 87c6770132
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ function relayhost($_action, $_data = null) {
$is_now = relayhost('details', $id);
if (!empty($is_now)) {
$hostname = (!empty($_data['hostname'])) ? trim($_data['hostname']) : $is_now['hostname'];
$username = (!empty($_data['username'])) ? trim($_data['username']) : $is_now['username'];
$password = (!empty($_data['password'])) ? trim($_data['password']) : $is_now['password'];
$username = (isset($_data['username'])) ? trim($_data['username']) : $is_now['username'];
$password = (isset($_data['password'])) ? trim($_data['password']) : $is_now['password'];
$active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active_int'];
}
else {