Fix PHP error where calling get() on a non object

pull/7/head
Aleksander Machniak 13 years ago
parent 9a2de8411e
commit 38184e9113

@ -2670,6 +2670,8 @@ class rcube_imap extends rcube_storage
return array(); return array();
} }
$config = rcube::get_instance()->config;
// #1486796: some server configurations doesn't return folders in all namespaces // #1486796: some server configurations doesn't return folders in all namespaces
if ($root == '' && $name == '*' && $config->get('imap_force_ns')) { if ($root == '' && $name == '*' && $config->get('imap_force_ns')) {
$this->list_folders_update($result); $this->list_folders_update($result);

Loading…
Cancel
Save