- header lists: change one-item array to string

release-0.6
alecpl 15 years ago
parent a1fc8d2518
commit 36e52648fa

@ -329,7 +329,7 @@ class managesieve extends rcube_plugin
}
if (empty($this->errors['tests'][$i]['header']))
$cust_header = $headers;
$cust_header = (is_array($headers) && count($headers) == 1) ? $headers[0] : $headers;
if ($type == 'exists')
{

Loading…
Cancel
Save