diff options
Diffstat (limited to 'includes/node.inc')
-rw-r--r-- | includes/node.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/node.inc b/includes/node.inc index 37e46f0b5..374732ae6 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -147,7 +147,7 @@ function node_save($node) { function node_invoke($node, $name, $arg = 0) { if ($node[type]) $function = $node[type] ."_$name"; if ($node->type) $function = $node->type ."_$name"; - if ($function) return ($arg ? $function($node, $arg) : $function($node)); + if (function_exists($function)) return ($arg ? $function($node, $arg) : $function($node)); } function node_view($node, $main = 0) { |