#664906 by swentel: Fix notice error when help.module is not enabled.
authorEarl Miles
Fri, 29 Jan 2010 21:23:32 +0000 (21:23 +0000)
committerEarl Miles
Fri, 29 Jan 2010 21:23:32 +0000 (21:23 +0000)
ctools.module

index e52a9cf..172c80a 100644 (file)
@@ -254,7 +254,7 @@ function ctools_theme_registry_alter(&$registry) {
     ) + $registry['menu_local_tasks'];
   }
 
-  if ($registry['help']['function'] == 'theme_help') {
+  if (isset($registry['help']['function']) && $registry['help']['function'] == 'theme_help') {
     $registry['help'] = array(
       'function' => 'ctools_menu_help',
       'path' => drupal_get_path('module', 'ctools') . '/includes',