summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-14 13:53:01 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-14 13:53:01 +0000
commitc730d8c179835b8855777f9aea3b8fc89c2f4e41 (patch)
tree09642e961486bd299e0254e9f76d47b8fdcd8105 /modules
parentaff14a735f7252ab21a889ae1cf217a2b900dbf3 (diff)
downloadbrdo-c730d8c179835b8855777f9aea3b8fc89c2f4e41.tar.gz
brdo-c730d8c179835b8855777f9aea3b8fc89c2f4e41.tar.bz2
#549230 by sun: Changed Use drupal_static() in _node_revision_access().
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 04f8f7b11..c1f6ee08e 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1595,7 +1595,7 @@ function theme_node_search_admin($form) {
}
function _node_revision_access($node, $op = 'view') {
- static $access = array();
+ $access = &drupal_static(__FUNCTION__, array());
if (!isset($access[$node->vid])) {
$node_current_revision = node_load($node->nid);
$is_current_revision = $node_current_revision->vid == $node->vid;