Commit 592d85fc authored by fago's avatar fago

#374841: removed redundant queries which occurred for nodes without any special settings.

parent 68617f02
...@@ -360,7 +360,7 @@ function content_access_per_node_setting($op, $node, $settings = NULL) { ...@@ -360,7 +360,7 @@ function content_access_per_node_setting($op, $node, $settings = NULL) {
$grants[$node->nid] = $settings; $grants[$node->nid] = $settings;
return; return;
} }
if (!isset($grants[$node->nid]) || !$grants[$node->nid]) { if (!isset($grants[$node->nid]) || $grants[$node->nid] === FALSE) {
$grants[$node->nid] = content_access_get_per_node_settings($node); $grants[$node->nid] = content_access_get_per_node_settings($node);
} }
// Return the content type defaults if no per node settings are available // Return the content type defaults if no per node settings are available
......
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