Index: contemplate.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/contemplate/contemplate.module,v retrieving revision 1.8.4.56 diff -u -r1.8.4.56 contemplate.module --- contemplate.module 30 Dec 2008 16:23:25 -0000 1.8.4.56 +++ contemplate.module 30 Dec 2008 18:09:00 -0000 @@ -42,12 +42,11 @@ */ function contemplate_node_type_load($index, $map_array) { $types = node_get_types(); - $type = $map_array[$index]; - if (!$types[$type]) { // if the argument isn't a valid node type, return FALSE + if (!isset($map_array[$index]) || !$types[$map_array[$index]]) { // if the argument isn't a valid node type, return false return FALSE; } else { - return $type; + return $map_array[$index]; } }