summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index bf1eb4348..3f02171e7 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1588,7 +1588,9 @@ function node_revision_revert($nid, $revision) {
if ($node->vid) {
$node->revision = 1;
$node->log = t('Copy of the revision from %date.', array('%date' => format_date($node->revision_timestamp)));
- $node->taxonomy = array_keys($node->taxonomy);
+ if (module_exists('taxonomy')) {
+ $node->taxonomy = array_keys($node->taxonomy);
+ }
node_save($node);