Commit 187e242a authored by yched's avatar yched

followup fix for #736440 - clone is PHP5 only - drupal_clone() is your friend

parent 9043009d
......@@ -29,7 +29,7 @@ function content_token_values($type, $object = NULL) {
// Let PHP free the $node object when we are done. Working directly on the
// incoming $object causes memory leak issues on long-running scripts such
// as migrations. See http://drupal.org/node/736440.
$node = clone $object;
$node = drupal_clone($object);
$type = content_types($node->type);
$node->build_mode = 'token';
$node->content = array();
......
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