From 15e7249322dddde2977cc82185a03cb59d3d46fa Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Mon, 30 Dec 2024 04:12:19 -0800 Subject: skill issue by me --- inbox_settings.php | 6 +++++- localization/en_US.inc | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/inbox_settings.php b/inbox_settings.php index 3f8b45d..d2eaff6 100644 --- a/inbox_settings.php +++ b/inbox_settings.php @@ -94,7 +94,11 @@ class inbox_settings extends rcube_plugin { // $this->rcmail->output->add_label('inbox_settings.a', 'inbox_settings.b'); - $data = run_query('keys', $assoc = true); + $data = $this->run_query('keys', [], true); + if (empty($data)) { + $this->rcmail->output->command( + 'display_message', $this->gettext('no_keys'), 'notice'); + } return rcmail_action::table_output($attrib, $data, ['fingerprint', 'comment'], 'id'); } diff --git a/localization/en_US.inc b/localization/en_US.inc index c465a37..37f1705 100644 --- a/localization/en_US.inc +++ b/localization/en_US.inc @@ -12,4 +12,5 @@ $labels['sql_error'] = 'Encountered an error while performing the operation; ple $labels['keygen'] = 'Generate Key'; $labels['key_import'] = 'Import Key'; $labels['key_delete'] = 'Delete Key'; +$labels['no_keys'] = 'There are no encryption keys associated with your account yet.'; ?> -- cgit v1.2.3