fixed photo deletion

This commit is contained in:
Roland Gruber 2017-11-07 20:28:38 +01:00
parent ab78756094
commit ff8fd54b91
1 changed files with 6 additions and 0 deletions

View File

@ -1540,6 +1540,12 @@ class windowsUser extends baseModule implements passwordService {
if (!$this->isBooleanConfigOptionSet('windowsUser_hideproxyAddresses', true)) { if (!$this->isBooleanConfigOptionSet('windowsUser_hideproxyAddresses', true)) {
$this->processMultiValueInputTextField('proxyAddresses', $return); $this->processMultiValueInputTextField('proxyAddresses', $return);
} }
// photo
if (!$this->isBooleanConfigOptionSet('windowsUser_hidejpegPhoto', true)) {
if (isset($_POST['delPhoto'])) {
unset($this->attributes['jpegPhoto']);
}
}
return $return; return $return;
} }