From 9975e42d3ceabfba7c43b1e59929b017749d8300 Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 27 Dec 2016 13:10:18 +0100 Subject: [PATCH] fix edit user bug deleting emails --- includes/pages/admin_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index 60ed340f..737bd91f 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -173,7 +173,7 @@ function admin_user() { `Handy` = '" . sql_escape($_POST["eHandy"]) . "', `Alter` = '" . sql_escape($_POST["eAlter"]) . "', `DECT` = '" . sql_escape($_POST["eDECT"]) . "', - `email` = '" . sql_escape(isset($_POST["eemail"]) ? $_POST["eemail"] : $user_source['email']) . "', + " . ($user_source['email_by_human_allowed'] ? "`email` = '" . sql_escape($_POST["eemail"]) . "'" : "") . " `jabber` = '" . sql_escape($_POST["ejabber"]) . "', `Size` = '" . sql_escape($_POST["eSize"]) . "', `Gekommen`= '" . sql_escape($_POST["eGekommen"]) . "',