diff --git a/plugins/libkolab/lib/kolab_storage.php b/plugins/libkolab/lib/kolab_storage.php index d4307a6c..893af60b 100644 --- a/plugins/libkolab/lib/kolab_storage.php +++ b/plugins/libkolab/lib/kolab_storage.php @@ -897,7 +897,7 @@ class kolab_storage // then the metadata will already contain all folder names and we can avoid the LIST below. if (!$subscribed && $filter != 'mail' && $prefix == '*') { foreach ($folderdata as $folder => $type) { - if (!preg_match($regexp, $type)) { + if (!preg_match($regexp, (string) $type)) { unset($folderdata[$folder]); } }