From 87c6770132e4ff3b2ae8fee29ae8a2b4638964dd Mon Sep 17 00:00:00 2001 From: "andre.peters" Date: Mon, 1 Jan 2018 09:17:49 +0100 Subject: [PATCH] [Web] Fix empty passwords for relayhosts --- data/web/inc/functions.relayhost.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {