Commit b6003523 authored by salvis's avatar salvis

Don't try to show the second block if the $nid doesn't exist (page not found).

parent 26d22c49
......@@ -468,9 +468,7 @@ function devel_node_access_block($op = 'list', $delta = 0) {
case 1:
// show which users can access this node
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
$node = node_load($nid);
if (arg(0) == 'node' && is_numeric($nid = arg(1)) && $node = node_load($nid)) {
$headers = array(t('username'), t('view'), t('update'), t('delete'));
$rows = array();
// Find all users. The following operations are very inefficient, so we
......
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