diff --git a/data/web/inc/functions.relayhost.inc.php b/data/web/inc/functions.relayhost.inc.php index 233ca0ad..e6722258 100644 --- a/data/web/inc/functions.relayhost.inc.php +++ b/data/web/inc/functions.relayhost.inc.php @@ -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 {