summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/taxonomy.module4
-rw-r--r--modules/taxonomy/taxonomy.module4
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index cb1de14cc..19ececa09 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -906,6 +906,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
while ($term = db_fetch_object($result)) {
$names[] = $term->name;
}
+ if (count($names) == 0) {
+ drupal_not_found();
+ return;
+ }
drupal_set_title($title = implode(', ', $names));
switch ($op) {
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index cb1de14cc..19ececa09 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -906,6 +906,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
while ($term = db_fetch_object($result)) {
$names[] = $term->name;
}
+ if (count($names) == 0) {
+ drupal_not_found();
+ return;
+ }
drupal_set_title($title = implode(', ', $names));
switch ($op) {