Skip to content

Commit e5a8d31

Browse files
authored
Merge pull request #1803 from IrAlfred/fix-backend-special-imap-folders-undefined-key
fix(backend): handle undefined special_imap_folders in user_settings
2 parents fd0505b + 6aade6e commit e5a8d31

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)