Commit 96a380ab authored by quicksketch's avatar quicksketch

Issue #1164892: Trying to get property of non-object in...

Issue #1164892: Trying to get property of non-object in filefield_field_sanitize() line 294 of filefield_field.inc when $node is not set.
parent e92362e0
......@@ -291,7 +291,7 @@ function filefield_field_sanitize($node, $field, &$items, $teaser, $page) {
}
// Add nid so formatters can create a link to the node.
$items[$delta]['nid'] = $node->nid;
$items[$delta]['nid'] = isset($node->nid) ? $node->nid : NULL;
// Get the 'data' column stored by CCK into an array. This is necessary
// for Views, which doesn't call the "load" $op and to fix an issue with
......
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