summaryrefslogtreecommitdiff
path: root/plugins/show_additional_headers/show_additional_headers.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-02-13 16:53:04 +0000
committeralecpl <alec@alec.pl>2010-02-13 16:53:04 +0000
commit9194996a28b6c8a45905e48ed937cc8e2aa5b92e (patch)
tree785a01da3bfb0c1ec32ff8e3ebd3c631423c2185 /plugins/show_additional_headers/show_additional_headers.php
parent1e6b19ddd7e07e2224b3f31716ea82e55ad20970 (diff)
- allow 'show_additional_headers' option value to be a string
Diffstat (limited to 'plugins/show_additional_headers/show_additional_headers.php')
-rw-r--r--plugins/show_additional_headers/show_additional_headers.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/show_additional_headers/show_additional_headers.php b/plugins/show_additional_headers/show_additional_headers.php
index 7e7c50354..1cbe690e9 100644
--- a/plugins/show_additional_headers/show_additional_headers.php
+++ b/plugins/show_additional_headers/show_additional_headers.php
@@ -32,7 +32,7 @@ class show_additional_headers extends rcube_plugin
function imap_init($p)
{
$rcmail = rcmail::get_instance();
- if ($add_headers = $rcmail->config->get('show_additional_headers', array()))
+ if ($add_headers = (array)$rcmail->config->get('show_additional_headers', array()))
$p['fetch_headers'] = trim($p['fetch_headers'].' ' . strtoupper(join(' ', $add_headers)));
return $p;
@@ -41,7 +41,7 @@ class show_additional_headers extends rcube_plugin
function message_headers($p)
{
$rcmail = rcmail::get_instance();
- foreach ($rcmail->config->get('show_additional_headers', array()) as $header) {
+ foreach ((array)$rcmail->config->get('show_additional_headers', array()) as $header) {
$key = strtolower($header);
if ($value = $p['headers']->others[$key])
$p['output'][$key] = array('title' => $header, 'value' => $value);