From ee43f097241253b8afbbb075d335d5039ae8a98c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Thu, 02 Jan 2014 02:40:00 -0500 Subject: [PATCH] Fix possible warning when advances_prefs setting is not an array --- program/steps/settings/func.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 418f8b0..7c36df3 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -1204,7 +1204,7 @@ $data = $RCMAIL->plugins->exec_hook('preferences_list', array('section' => $sect['id'], 'blocks' => $blocks, 'current' => $current)); - $advanced_prefs = $config['advanced_prefs']; + $advanced_prefs = (array) $RCMAIL->config->get('advanced_prefs'); // create output foreach ($data['blocks'] as $key => $block) { -- Gitblit v1.9.1