fix edit user bug deleting emails
This commit is contained in:
parent
07a0ed37ec
commit
2f2d08c574
|
@ -34,7 +34,7 @@ function shift_entry_add_controller() {
|
|||
if (in_array('user_shifts_admin', $privileges) || in_array('shiftentry_edit_angeltype_supporter', $privileges)) {
|
||||
$type = AngelType($type_id);
|
||||
} else {
|
||||
$type = sql_select("SELECT * FROM `UserAngelTypes` JOIN `AngelTypes` ON (`UserAngelTypes`.`angeltype_id` = `AngelTypes`.`id`) WHERE `AngelTypes`.`id` = '" . sql_escape($type_id) . "' AND (`AngelTypes`.`restricted` = 0 OR (`UserAngelTypes`.`user_id` = '" . sql_escape($user['UID']) . "' AND NOT `UserAngelTypes`.`confirm_user_id` IS NULL)) LIMIT 1");
|
||||
$type = sql_select("SELECT * FROM `UserAngelTypes` JOIN `AngelTypes` ON (`UserAngelTypes`.`angeltype_id` = `AngelTypes`.`id`) WHERE `AngelTypes`.`id` = '" . sql_escape($type_id) . "' AND (`AngelTypes`.`restricted` = 0 OR (`UserAngelTypes`.`user_id` = '" . sql_escape($user['UID']) . "' AND NOT `UserAngelTypes`.`confirm_user_id` IS NULL))");
|
||||
$type = $type[0];
|
||||
}
|
||||
|
||||
|
|
|
@ -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($_POST["eemail"]) . "',
|
||||
`email` = '" . sql_escape(isset($_POST["eemail"]) ? $_POST["eemail"] : $user_source['email']) . "',
|
||||
`jabber` = '" . sql_escape($_POST["ejabber"]) . "',
|
||||
`Size` = '" . sql_escape($_POST["eSize"]) . "',
|
||||
`Gekommen`= '" . sql_escape($_POST["eGekommen"]) . "',
|
||||
|
|
Loading…
Reference in New Issue