summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Wittens2004-12-24 06:49:46 (GMT)
committer Steven Wittens2004-12-24 06:49:46 (GMT)
commit4e6465241e3948b1ddda6004cccf875958bd50ce (patch)
treedcfc4cca899e568d9ff4ab278471b2b6564482d1
parent3b2484bbee5d228785d64530a4b64cf4efbd1d45 (diff)
#10949: Incorrect output with invalid term id
-rw-r--r--modules/taxonomy.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 90e37ec..a29f641 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -902,6 +902,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;
+ }
$title = implode(', ', $names);
switch ($op) {