From fe2a8a4fecc47dba12905c760bdd8ce2ffd5f071 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 2 Jan 2025 01:55:19 -0800 Subject: SQL error is kinda nonsense here --- inbox_settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inbox_settings.php') 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() { -- cgit v1.2.3