diff options
| author | Carson Fleming <[email protected]> | 2025-01-02 01:55:19 -0800 |
|---|---|---|
| committer | Carson Fleming <[email protected]> | 2025-01-02 01:55:19 -0800 |
| commit | fe2a8a4fecc47dba12905c760bdd8ce2ffd5f071 (patch) | |
| tree | 48a8ffe28c52eb86dfa15c8a2ba5987529234327 /inbox_settings.php | |
| parent | b8b2dfe7268d27e42abc80ab5acb67ed2244d621 (diff) | |
| download | rc-inbox-settings-fe2a8a4fecc47dba12905c760bdd8ce2ffd5f071.tar.gz | |
SQL error is kinda nonsense here
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() { |
