From 6af96f76af2911dd0f6cc1644fb0567eb0cfb790 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Nov 2006 10:32:03 +0000 Subject: [PATCH] - fixed bug: editing infolog >> site config deletes custom fields - fixed warning if nothing checked in responsible edit --- infolog/inc/class.uiinfolog.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index c16a618bd8..19b102c7e8 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -961,11 +961,11 @@ $this->bo->responsible_edit = array_merge($this->bo->responsible_edit,$extra); } $this->bo->implicit_rights = $_POST['implicit_rights'] == 'edit' ? 'edit' : 'read'; - $this->bo->config->config_data = array( + $this->bo->config->config_data += array( // only "adding" the changed items, to not delete other config like custom fields 'link_pathes' => $this->link_pathes, 'send_file_ips' => $this->bo->send_file_ips, 'implicit_rights' => $this->bo->implicit_rights, - 'responsible_edit' => implode(',',$extra), + 'responsible_edit' => is_array($extra) ? implode(',',$extra) : $extra, ); $this->bo->config->save_repository(True); }