Index: contrib/node_export.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/install_profile_api/contrib/Attic/node_export.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 node_export.inc
--- contrib/node_export.inc	23 Jun 2009 22:45:00 -0000	1.1.2.1
+++ contrib/node_export.inc	24 Jun 2009 02:50:28 -0000
@@ -48,7 +48,12 @@ function install_node_export_import_from
   // to use reuse the node_export code.
   $export = file_get_contents($file);
   $node_code = str_replace('node(code(', 'array(array(', $export);
-  $imported_nodes = eval("return " . $node_code . ";");
+  eval("$"."imported_nodes = " . $node_code . ";");
+
+  // handle nodes exported individually
+  if (!is_array($imported_nodes[0])) {
+    $imported_nodes = array($imported_nodes);
+  }
 
   $saved_nodes = array();
 
