Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
3a8cbc7c
Commit
3a8cbc7c
authored
Jun 27, 2014
by
metzlerd
Browse files
#2285287
Call to undefined method DatabaseStatementBase::xpath()
parent
e27ad3e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
renderers/FrxRenderer.inc
View file @
3a8cbc7c
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment