Commit d0390be0 authored by Dries's avatar Dries
Browse files

- Patch #18275 by Steven: "create content" menu displays extraneous links.

  (Not sure if this needs to be backported to DRUPAL-4-6.)
parent 500ea748
......@@ -277,7 +277,7 @@ function node_list() {
foreach (module_list() as $module) {
if (module_hook($module, 'node_name')) {
$module_types = module_invoke($module, 'node_types');
if ($module_types) {
if (is_array($module_types)) {
foreach ($module_types as $type) {
$types[] = $type;
}
......
......@@ -277,7 +277,7 @@ function node_list() {
foreach (module_list() as $module) {
if (module_hook($module, 'node_name')) {
$module_types = module_invoke($module, 'node_types');
if ($module_types) {
if (is_array($module_types)) {
foreach ($module_types as $type) {
$types[] = $type;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment