summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-08-13 16:13:09 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-08-13 16:13:09 (GMT)
commitde14433797455a1ca2530e1b36e1390a671e0eb5 (patch)
tree198a6af7723ae2fbc0065adba353dbf8f24484a1 /plugins
parenta2d519a1aeead0799cddfc931da6387c26050170 (diff)
downloadroundcubemail-plugins-kolab-de14433797455a1ca2530e1b36e1390a671e0eb5.tar.gz
Fix php warning when kolab_skip_namespace=''
Diffstat (limited to 'plugins')
-rw-r--r--plugins/kolab_folders/kolab_folders.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php
index a9c7b42..510388c 100644
--- a/plugins/kolab_folders/kolab_folders.php
+++ b/plugins/kolab_folders/kolab_folders.php
@@ -115,12 +115,12 @@ class kolab_folders extends rcube_plugin
$this->add_label('foldertype' . $type);
}
- $skip_namespace = (array)$this->rc->config->get('kolab_skip_namespace');
+ $skip_namespace = $this->rc->config->get('kolab_skip_namespace');
$skip_roots = array();
if (!empty($skip_namespace)) {
$storage = $this->rc->get_storage();
- foreach ($skip_namespace as $ns) {
+ foreach ((array)$skip_namespace as $ns) {
foreach((array)$storage->get_namespace($ns) as $root) {
$skip_roots[] = rtrim($root[0], $root[1]);
}