Commit 355948c0 authored by metzlerd's avatar metzlerd
Browse files

Fixing code for missing node ids.

parent 2e4d546c
......@@ -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';
......
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