#549230 by sun: Changed Use drupal_static() in _node_revision_access().

merge-requests/26/head
Angie Byron 2009-08-14 13:53:01 +00:00
parent aff14a735f
commit c730d8c179
1 changed files with 1 additions and 1 deletions

View File

@ -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;