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
355948c0
Commit
355948c0
authored
May 05, 2013
by
metzlerd
Browse files
Fixing code for missing node ids.
parent
2e4d546c
Changes
1
Hide whitespace changes
Inline
Side-by-side
repos/drupal/FrxDrupalNode.inc
View file @
355948c0
...
...
@@ -10,6 +10,9 @@ class FrxDrupalNode {
public
function
load
(
$parms
=
array
())
{
$nid
=
isset
(
$parms
[
'nid'
])
?
$parms
[
'nid'
]
:
1
;
$vid
=
isset
(
$parms
[
'vid'
])
?
$parms
[
'vid'
]
:
NULL
;
// No node ID means don't try and laod a node.
if
(
!
$nid
&&
!
$vid
)
return
''
;
$node
=
node_load
(
$nid
,
$vid
);
$return
=
new
SimpleXMLElement
(
'<node/>'
);
$lang
=
isset
(
$node
->
language
)
?
$node
->
language
:
'unk'
;
...
...
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