diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-28 07:03:31 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-28 07:03:31 +0000 |
| commit | 9f5ec6e90d088224bc4c8dbabc92928fb4d6f0b8 (patch) | |
| tree | 92aaa18d56abe1a4c28d9826095a9f3b0120264d /roundcubemail/plugins | |
| parent | 42597177a016bb5b30fdb7a41a73fd5b7a48db45 (diff) | |
- header lists: change one-item array to string
git-svn-id: https://svn.roundcube.net/trunk@2555 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins')
| -rw-r--r-- | roundcubemail/plugins/managesieve/managesieve.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/plugins/managesieve/managesieve.php b/roundcubemail/plugins/managesieve/managesieve.php index fc2925765..30bcf607b 100644 --- a/roundcubemail/plugins/managesieve/managesieve.php +++ b/roundcubemail/plugins/managesieve/managesieve.php @@ -325,11 +325,11 @@ class managesieve extends rcube_plugin foreach ($headers as $hr) if (!preg_match('/^[a-z0-9-]+$/i', $hr)) $this->errors['tests'][$i]['header'] = $this->gettext('forbiddenchars'); - } + } } if (empty($this->errors['tests'][$i]['header'])) - $cust_header = $headers; + $cust_header = (is_array($headers) && count($headers) == 1) ? $headers[0] : $headers; if ($type == 'exists') { |
