Skip to content

Commit

Permalink
PHP doesn't automatically cast to string here
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 13, 2014
1 parent 460b633 commit 20f110d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/lib/Compose.php
Expand Up @@ -2087,7 +2087,7 @@ public function replyMessage($type, $contents, array $opts = array())
if (($lang = $h['Accept-Language']) ||
($lang = $h['X-Accept-Language'])) {
$langs = array();
foreach (explode(',', $lang) as $val) {
foreach (explode(',', $lang->value_single) as $val) {
if (($name = Horde_Nls::getLanguageISO($val)) !== null) {
$langs[trim($val)] = $name;
}
Expand Down

0 comments on commit 20f110d

Please sign in to comment.