Commit 3a8cbc7c authored by metzlerd's avatar metzlerd
Browse files

#2285287 Call to undefined method DatabaseStatementBase::xpath()

parent e27ad3e1
......@@ -640,7 +640,13 @@ class FrxRenderer {
public function columns($xml, $path='/*/*') {
//create an array of columns
if (!is_object($xml)) return array();
$rows = $xml->xpath($path);
// Use xpath if possible otherwise iterate.
if (method_exists($xml, 'xpath')) {
$rows = $xml->xpath($path);
}
else {
$rows = $xml;
}
$column_array = array();
$numeric_columns = array();
foreach ($rows as $columns) {
......
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