From ee43f097241253b8afbbb075d335d5039ae8a98c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 2 Jan 2014 08:40:00 +0100 Subject: Fix possible warning when advances_prefs setting is not an array --- program/steps/settings/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/settings/func.inc') diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 418f8b043..7c36df3b1 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -1204,7 +1204,7 @@ function rcmail_user_prefs($current = null) $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) { -- cgit v1.2.3