From acb57c039500fd2f7805a66dcd17fb47c5236e99 Mon Sep 17 00:00:00 2001 From: guy_schneerson Date: Tue, 6 Jan 2015 14:28:17 +0000 Subject: [PATCH] #25 Stop errors on the page manager when adding the Aggregated Rights Table block --- sites/all/modules/custom/kendra_wf/kendra_wf.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sites/all/modules/custom/kendra_wf/kendra_wf.module b/sites/all/modules/custom/kendra_wf/kendra_wf.module index d1963f2b..abbe35b8 100755 --- a/sites/all/modules/custom/kendra_wf/kendra_wf.module +++ b/sites/all/modules/custom/kendra_wf/kendra_wf.module @@ -257,7 +257,10 @@ function kendra_wf_block_view($delta) { function kendra_wf_get_current_aggregated_rights_table($form, &$form_state) { $content = array(); - $nid = arg(1); + $nid = (int) arg(1); + if ($nid == 0) { + return $form; + } $asset = node_load($nid); if ($asset->type == 'asset') {