summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-23 17:00:11 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-23 17:00:11 +0200
commit7d213af1bd85cb09e5b66dd2c03506eb76c9495b (patch)
tree6a0ca3c6a93ce9604dd89903c05f010f8aaf7bf6 /program/steps/mail
parentfc2b025081acc0fe4841b74cd6e077ca62019ee2 (diff)
Fix saving of search settings in 'all folders' mode
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/search.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc
index fe2c72923..e610e9137 100644
--- a/program/steps/mail/search.inc
+++ b/program/steps/mail/search.inc
@@ -88,8 +88,9 @@ else if (strlen(trim($str))) {
}
// save search modifiers for the current folder to user prefs
+ $mkey = $scope == 'all' ? '*' : $mbox;
$search_mods = rcmail_search_mods();
- $search_mods[$mbox] = array_fill_keys(array_keys($subject), 1);
+ $search_mods[$mkey] = array_fill_keys(array_keys($subject), 1);
$RCMAIL->user->save_prefs(array('search_mods' => $search_mods));
}