summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-25 09:18:48 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-25 09:18:48 +0000
commit6ecf55d3193b684e6fb18c75aa422f1eeee11d9b (patch)
tree4f243434600f8852e6e71046c92a6602a0cf0548 /modules/node
parent5299b9268995d1018a6b966f9d1ef260931f5c3d (diff)
downloadbrdo-6ecf55d3193b684e6fb18c75aa422f1eeee11d9b.tar.gz
brdo-6ecf55d3193b684e6fb18c75aa422f1eeee11d9b.tar.bz2
- Patch #201746 by traxer: fixed E_NOTICE warning.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc2
1 files changed, 1 insertions, 1 deletions
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;