Fix PHP8 warning

This commit is contained in:
Aleksander Machniak 2023-08-02 16:03:38 +02:00
parent 36d8b80300
commit 57ed29ef68

View file

@ -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]);
}
}