summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-02 19:34:32 +0200
committerAleksander Machniak <alec@alec.pl>2012-09-02 19:34:32 +0200
commit6c9fe3d894bd065df3e4cd16ff9f661ad7194856 (patch)
tree824ebe3012f462799d31f229790ca20d3fa96158 /program/steps
parent94015ea223dd67d118e0d3c638cc16b0ba3b1cc3 (diff)
Fix possible PHP Warning: in_array() expects parameter 2 to be array
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/folders.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/settings/folders.inc b/program/steps/settings/folders.inc
index d299a9158..1739c273b 100644
--- a/program/steps/settings/folders.inc
+++ b/program/steps/settings/folders.inc
@@ -47,8 +47,8 @@ if ($RCMAIL->action == 'subscribe')
if ($result) {
// Handle subscription of protected folder (#1487656)
- if ($CONFIG['protect_default_folders'] == true
- && in_array($mbox, $CONFIG['default_folders'])
+ if ($RCMAIL->config->get('protect_default_folders')
+ && in_array($mbox, (array)$RCMAIL->config->get('default_folders'))
) {
$OUTPUT->command('disable_subscription', $mbox);
}