Skip to content
Snippets Groups Projects
Commit a87926e2 authored by Tim Steiner's avatar Tim Steiner
Browse files

Get rid of an undefined index warning from certain cases.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@194 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 05952cb6
No related branches found
No related tags found
No related merge requests found
...@@ -46,17 +46,17 @@ function tac_admin($form, $form_state, $rid = NULL) ...@@ -46,17 +46,17 @@ function tac_admin($form, $form_state, $rid = NULL)
'view' => array( 'view' => array(
'#parents' => array('edit', $rid, $term->tid, 'view'), '#parents' => array('edit', $rid, $term->tid, 'view'),
'#type' => 'checkbox', '#type' => 'checkbox',
'#default_value' => $currentValues[$rid][$term->tid]->grant_view '#default_value' => (isset($currentValues[$rid][$term->tid]->grant_view) ? $currentValues[$rid][$term->tid]->grant_view : 0)
), ),
'update' => array( 'update' => array(
'#parents' => array('edit', $rid, $term->tid, 'update'), '#parents' => array('edit', $rid, $term->tid, 'update'),
'#type' => 'checkbox', '#type' => 'checkbox',
'#default_value' => $currentValues[$rid][$term->tid]->grant_update '#default_value' => (isset($currentValues[$rid][$term->tid]->grant_update) ? $currentValues[$rid][$term->tid]->grant_update : 0)
), ),
'delete' => array( 'delete' => array(
'#parents' => array('edit', $rid, $term->tid, 'delete'), '#parents' => array('edit', $rid, $term->tid, 'delete'),
'#type' => 'checkbox', '#type' => 'checkbox',
'#default_value' => $currentValues[$rid][$term->tid]->grant_delete '#default_value' => (isset($currentValues[$rid][$term->tid]->grant_delete) ? $currentValues[$rid][$term->tid]->grant_delete : 0)
) )
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment