summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-21 20:19:26 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-21 20:19:26 +0200
commit38184e911363dd8c2bd4c93b7d3f3dde27be8e61 (patch)
treeac66a1a7eda12aa9279cfa956f51d19d8611b9f6 /program/include/rcube_imap.php
parent9a2de8411ecb66e3df2fae5e65f0251b7c25173f (diff)
Fix PHP error where calling get() on a non object
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index b966aa348..57f70eb1a 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -2670,6 +2670,8 @@ class rcube_imap extends rcube_storage
return array();
}
+ $config = rcube::get_instance()->config;
+
// #1486796: some server configurations doesn't return folders in all namespaces
if ($root == '' && $name == '*' && $config->get('imap_force_ns')) {
$this->list_folders_update($result);