? help/devel
Index: node_import.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/node_import/Attic/node_import.inc,v
retrieving revision 1.1.2.43
diff -u -p -r1.1.2.43 node_import.inc
--- node_import.inc	26 Feb 2009 21:29:38 -0000	1.1.2.43
+++ node_import.inc	18 Mar 2009 19:58:46 -0000
@@ -99,7 +99,7 @@ function node_import_types($check_access
   if (!isset($types) || $reset) {
     $defaults = array(
       'title' => '',
-      'can_create' => '',
+      'can_create' => FALSE,
       'create' => '',
     );
 
@@ -117,7 +117,7 @@ function node_import_types($check_access
 
     $allowed_types = array();
     foreach ($types as $type => $typeinfo) {
-      if (function_exists($function = $typeinfo['can_create']) && $function($type) === TRUE) {
+      if ($typeinfo['can_create'] === TRUE || (function_exists($function = $typeinfo['can_create']) && $function($type) === TRUE)) {
         $allowed_types[$type] = $typeinfo;
       }
     }
