fix removing of ssl-ip-relation to domain if no ssl-ip is selected via interface, thx to Patient Nr0

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-11-27 18:32:27 +01:00
parent e8be3ee643
commit bae8c86901

View File

@@ -382,7 +382,7 @@ if ($page == 'domains' || $page == 'overview') {
if (isset($_POST['send']) && $_POST['send'] == 'send') {
try {
// remove ssl ip/ports if set is empty
if (isset($_POST['ssl_ipandport']) && empty($_POST['ssl_ipandport'])) {
if (!isset($_POST['ssl_ipandport']) || empty($_POST['ssl_ipandport'])) {
$_POST['remove_ssl_ipandport'] = true;
}
Domains::getLocal($userinfo, $_POST)->update();