diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-04-06 04:39:51 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-04-06 04:39:51 +0000 |
commit | f3cd2da113853bef53b733a09a92e59c04d5ec51 (patch) | |
tree | 4d73f51c97e77177687b854a609ef01024aab51a /modules/node | |
parent | c504141f457401cd26adc6ea47f251e99cf930c9 (diff) | |
download | brdo-f3cd2da113853bef53b733a09a92e59c04d5ec51.tar.gz brdo-f3cd2da113853bef53b733a09a92e59c04d5ec51.tar.bz2 |
#130991: Custom menu items, part 1
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 88284bb6d..19cb9b232 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -527,7 +527,7 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) { $node = db_fetch_object(db_query('SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.vid = n.vid WHERE '. $cond, $arguments)); } - if ($node->nid) { + if ($node && $node->nid) { // Call the node specific callback (if any) and piggy-back the // results to the node or overwrite some values. if ($extra = node_invoke($node, 'load')) { |