From 6ecf55d3193b684e6fb18c75aa422f1eeee11d9b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 25 Jun 2008 09:18:48 +0000 Subject: - Patch #201746 by traxer: fixed E_NOTICE warning. --- modules/node/content_types.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node') diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 754084d13..d6e6b92e9 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -364,8 +364,8 @@ function node_node_type($op, $info) { function node_type_reset(&$type) { $info_array = module_invoke_all('node_info'); if (isset($info_array[$type->orig_type])) { + $info_array[$type->orig_type]['type'] = $type->orig_type; $info = _node_type_set_defaults($info_array[$type->orig_type]); - $info['type'] = $type->orig_type; foreach ($info as $field => $value) { $type->$field = $value; -- cgit v1.2.3