Fix possible warning when advances_prefs setting is not an array

pull/160/head
Aleksander Machniak 11 years ago
parent 0301d9347f
commit ee43f09724

@ -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) {

Loading…
Cancel
Save