From ae33932f0b98e5677dc849653fb6ce8a41e1a3c1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 19 Aug 2009 14:59:58 +0000 Subject: [PATCH] "fixed not savable empty site configuration 'responsible_edit', once a value was set before" --- infolog/inc/class.infolog_ui.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 2178b6b21d..70c112f6aa 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1303,9 +1303,10 @@ class infolog_ui if ($_POST['responsible_edit']) { - $extra = array_intersect($_POST['responsible_edit'],array_keys($fields)); - config::save_value('responsible_edit',$this->bo->responsible_edit = array_merge($this->bo->responsible_edit,$extra),'infolog'); + $extra = array_intersect((array)$_POST['responsible_edit'],array_keys($fields)); + $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('history',$this->bo->history = $_POST['history'],'infolog'); }