[Web] Fix empty passwords for relayhosts
parent
db032af698
commit
87c6770132
|
@ -56,8 +56,8 @@ function relayhost($_action, $_data = null) {
|
||||||
$is_now = relayhost('details', $id);
|
$is_now = relayhost('details', $id);
|
||||||
if (!empty($is_now)) {
|
if (!empty($is_now)) {
|
||||||
$hostname = (!empty($_data['hostname'])) ? trim($_data['hostname']) : $is_now['hostname'];
|
$hostname = (!empty($_data['hostname'])) ? trim($_data['hostname']) : $is_now['hostname'];
|
||||||
$username = (!empty($_data['username'])) ? trim($_data['username']) : $is_now['username'];
|
$username = (isset($_data['username'])) ? trim($_data['username']) : $is_now['username'];
|
||||||
$password = (!empty($_data['password'])) ? trim($_data['password']) : $is_now['password'];
|
$password = (isset($_data['password'])) ? trim($_data['password']) : $is_now['password'];
|
||||||
$active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active_int'];
|
$active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active_int'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue