diff options
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 087ff7f01..02840c7a6 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -470,7 +470,7 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) { if (is_numeric($param)) { $cachable = $revision == NULL; if ($cachable && isset($nodes[$param])) { - return $nodes[$param]; + return drupal_clone($nodes[$param]); } $cond = 'n.nid = %d'; $arguments[] = $param; @@ -511,7 +511,7 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) { } if ($cachable) { - $nodes[$param] = $node; + $nodes[$param] = drupal_clone($node); } return $node; |