summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inbox_settings.php6
-rw-r--r--localization/en_US.inc1
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.';
?>