"fixed not savable empty site configuration 'responsible_edit', once a value was set before"

This commit is contained in:
Ralf Becker 2009-08-19 15:00:50 +00:00
parent 1423948060
commit 08aa2d4606

View File

@ -1282,9 +1282,10 @@ class infolog_ui
if ($_POST['responsible_edit']) if ($_POST['responsible_edit'])
{ {
$extra = array_intersect($_POST['responsible_edit'],array_keys($fields)); $extra = array_intersect((array)$_POST['responsible_edit'],array_keys($fields));
config::save_value('responsible_edit',$this->bo->responsible_edit = array_merge($this->bo->responsible_edit,$extra),'infolog'); $this->bo->responsible_edit = array_merge($this->bo->responsible_edit,$extra);
} }
config::save_value('responsible_edit',$this->bo->responsible_edit,'infolog');
config::save_value('implicit_rights',$this->bo->implicit_rights = $_POST['implicit_rights'] == 'edit' ? 'edit' : 'read','infolog'); config::save_value('implicit_rights',$this->bo->implicit_rights = $_POST['implicit_rights'] == 'edit' ? 'edit' : 'read','infolog');
config::save_value('history',$this->bo->history = $_POST['history'],'infolog'); config::save_value('history',$this->bo->history = $_POST['history'],'infolog');
} }