Skip to content
Snippets Groups Projects
Commit 6ecf55d3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #201746 by traxer: fixed E_NOTICE warning.

parent 5299b926
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment