diff --git a/Module/I18n/Parser/Adapter/Xml.php b/Module/I18n/Parser/Adapter/Xml.php index fcb5c7c..4bc0e26 100755 --- a/Module/I18n/Parser/Adapter/Xml.php +++ b/Module/I18n/Parser/Adapter/Xml.php @@ -29,8 +29,8 @@ protected function _parse() if ((string)$attributes['translate'] == 'true') { $this->_addPhrase((string)$element); } else { - $nodesDelimiter = strpos($attributes['translate'], ' ') === false ? ',' : ' '; - foreach (explode($nodesDelimiter, $attributes['translate']) as $value) { + $nodesDelimiter = strpos((string)$attributes['translate'], ' ') === false ? ',' : ' '; + foreach (explode($nodesDelimiter, (string)$attributes['translate']) as $value) { $phrase = (string)$element->{$value}; if ($phrase) { $this->_addPhrase($phrase);