Skip to content

Commit 6aade6e

Browse files
committed
fix(backend): handle undefined special_imap_folders in user_settings
1 parent fd0505b commit 6aade6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/output_modules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ protected function output() {
616616
$settings = $this->get('user_settings', array());
617617
$enable_snooze = $settings['enable_snooze'] ?? DEFAULT_ENABLE_SNOOZE;
618618
$enable_collect_address_on_send = $settings['enable_collect_address_on_send_setting'] ?? DEFAULT_ENABLE_COLLECT_ADDRESS_ON_SEND;
619-
$specialFolders = $settings['special_imap_folders'];
619+
$specialFolders = $settings['special_imap_folders'] ?? array();
620620
$formattedSpecialFolders = [];
621621
foreach ($specialFolders as $serverId => $folders) {
622622
$formattedSpecialFolders[$serverId] = [];

0 commit comments

Comments
 (0)