Skip to content

Commit

Permalink
[BUGFIX] Solved Uncaught TypeError: strpos() expects parameter 1 to b…
Browse files Browse the repository at this point in the history
…e string, object given
  • Loading branch information
lewisvoncken authored Nov 5, 2020
1 parent 91c8747 commit 6278434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Module/I18n/Parser/Adapter/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6278434

Please sign in to comment.