From 57ed29ef684f47b3fe2f0982241072880f13213a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 2 Aug 2023 16:03:38 +0200 Subject: [PATCH] Fix PHP8 warning --- plugins/libkolab/lib/kolab_storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } }