Fix PHP8 warning
This commit is contained in:
parent
36d8b80300
commit
57ed29ef68
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue