diff options
| author | Carson Fleming <[email protected]> | 2024-12-30 04:12:19 -0800 |
|---|---|---|
| committer | Carson Fleming <[email protected]> | 2024-12-30 04:12:19 -0800 |
| commit | 15e7249322dddde2977cc82185a03cb59d3d46fa (patch) | |
| tree | cb311405c790a3aac4a52fae42c262bcd195ca32 | |
| parent | 649608f336a2b6810886bc291b31126a48a1bba6 (diff) | |
| download | rc-inbox-settings-15e7249322dddde2977cc82185a03cb59d3d46fa.tar.gz | |
skill issue by me
| -rw-r--r-- | inbox_settings.php | 6 | ||||
| -rw-r--r-- | localization/en_US.inc | 1 |
2 files changed, 6 insertions, 1 deletions
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.'; ?> |
