summaryrefslogtreecommitdiff
path: root/program/include
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:20:39 +0200
commitf0a3911f0759d345aa2dd50d19b356569d2a91d2 (patch)
tree7a0d57f8ef90b1aea9e891a526450e25319fd55b /program/include
parenteb0478df35831c346fe794721e40fde0de0fc839 (diff)
Fix PHP error where calling get() on a non object
Diffstat (limited to 'program/include')
-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 e8a33cb1e..0374d08d6 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);