diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/help.module | 4 | ||||
-rw-r--r-- | modules/help/help.module | 4 | ||||
-rw-r--r-- | modules/node.module | 2 | ||||
-rw-r--r-- | modules/node/node.module | 2 | ||||
-rw-r--r-- | modules/taxonomy.module | 2 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
6 files changed, 6 insertions, 10 deletions
diff --git a/modules/help.module b/modules/help.module index 6cfdce90c..f386c177a 100644 --- a/modules/help.module +++ b/modules/help.module @@ -47,10 +47,8 @@ function help_glossary() { function help_help($section) { switch ($section) { case 'admin/modules#description': - $output = t('Manages displaying online help.'); - break; + return t('Manages displaying online help.'); } - return $output; } /** diff --git a/modules/help/help.module b/modules/help/help.module index 6cfdce90c..f386c177a 100644 --- a/modules/help/help.module +++ b/modules/help/help.module @@ -47,10 +47,8 @@ function help_glossary() { function help_help($section) { switch ($section) { case 'admin/modules#description': - $output = t('Manages displaying online help.'); - break; + return t('Manages displaying online help.'); } - return $output; } /** diff --git a/modules/node.module b/modules/node.module index 3ea1aa664..7ec3e4c1e 100644 --- a/modules/node.module +++ b/modules/node.module @@ -620,7 +620,7 @@ function node_link($type, $node = 0, $main = 0) { $links = array(); if ($type == 'node') { - if ($node->links) { + if (array_key_exists('links', $node)) { $links = $node->links; } diff --git a/modules/node/node.module b/modules/node/node.module index 3ea1aa664..7ec3e4c1e 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -620,7 +620,7 @@ function node_link($type, $node = 0, $main = 0) { $links = array(); if ($type == 'node') { - if ($node->links) { + if (array_key_exists('links', $node)) { $links = $node->links; } diff --git a/modules/taxonomy.module b/modules/taxonomy.module index f8c4226e5..8bd8ba1f1 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -38,7 +38,7 @@ function taxonomy_perm() { function taxonomy_link($type, $node = NULL) { if ($type == 'taxonomy terms' && $node != NULL) { $links = array(); - if ($node->taxonomy) { + if (array_key_exists('taxonomy', $node)) { foreach ($node->taxonomy as $tid) { $term = taxonomy_get_term($tid); $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array ('title' => $term->description) : array()); diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index f8c4226e5..8bd8ba1f1 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -38,7 +38,7 @@ function taxonomy_perm() { function taxonomy_link($type, $node = NULL) { if ($type == 'taxonomy terms' && $node != NULL) { $links = array(); - if ($node->taxonomy) { + if (array_key_exists('taxonomy', $node)) { foreach ($node->taxonomy as $tid) { $term = taxonomy_get_term($tid); $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array ('title' => $term->description) : array()); |