Commit 39a48754 authored by metzlerd's avatar metzlerd
Browse files

Fix for certain fields not honoring the standard structure in php 7.3

parent eff66b23
...@@ -189,12 +189,12 @@ class FrxDrupal extends FrxDataSource { ...@@ -189,12 +189,12 @@ class FrxDrupal extends FrxDataSource {
} }
else { else {
if (is_array($val) && isset($val[$lang])) { if (is_array($val) && isset($val[$lang])) {
$tmp = $val[$lang][0]; $tmp = reset($val[$lang]);
if (isset($tmp['safe_value'])) { if (isset($tmp['safe_value'])) {
$row_node->addChild($key, htmlspecialchars($tmp['safe_value'])); $row_node->addChild($key, htmlspecialchars($tmp['safe_value']));
} }
else { else {
if (isset($tmp['value'])) { if (isset($tmp['value']) && !is_array($tmp['value'])) {
$row_node->addChild($key, htmlspecialchars($tmp['value'])); $row_node->addChild($key, htmlspecialchars($tmp['value']));
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment