cvs diff: Diffing .
? .project
Index: search_restrict.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/search_restrict/search_restrict.module,v
retrieving revision 1.2
diff -u -p -r1.2 search_restrict.module
--- search_restrict.module	25 Jul 2009 23:21:18 -0000	1.2
+++ search_restrict.module	29 Jul 2009 22:29:48 -0000
@@ -37,7 +37,7 @@ function search_restrict_content_type_fo
     '#title' => t('Roles'),
     '#description' => t('If all checkboxes are unselected then everyone can search.'),
     '#options' => $roles,
-    '#default_value' => $content_type_restrictions[$form['#node_type']->type],
+    '#default_value' => isset($content_type_restrictions[$form['#node_type']->type]) ? $content_type_restrictions[$form['#node_type']->type] : array(),
   );
   // Use custom submit function to avoid a query at time of search to get the
   // list of content types.
