diff options
author | msquare <msquare@notrademark.de> | 2016-12-27 13:10:18 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-12-27 13:10:18 +0100 |
commit | 9975e42d3ceabfba7c43b1e59929b017749d8300 (patch) | |
tree | 6ae56af439701fab3eb49974ffd27e5136ec756b | |
parent | 2f2d08c574ac703c2ba663ea8347345779e1645e (diff) |
fix edit user bug deleting emails
-rw-r--r-- | includes/pages/admin_user.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"]) . "', |