diff options
Diffstat (limited to 'inbox_settings.php')
| -rw-r--r-- | inbox_settings.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inbox_settings.php b/inbox_settings.php index aa8e8a2..4e7b24f 100644 --- a/inbox_settings.php +++ b/inbox_settings.php @@ -198,7 +198,7 @@ class inbox_settings extends rcube_plugin { } private function import_keys() { - if (!isset($_POST['import'])) + if (!isset($_POST['import']) || empty($_POST['key_data'])) return false; try { @@ -227,7 +227,7 @@ class inbox_settings extends rcube_plugin { $this->rcmail->output->command( 'display_message', $this->gettext('keys_imported'), 'notice'); - return true; + return isset($_POST['refresh']) ? boolval($_POST['refresh']) : true; } function render_import_ui() { |
