Commit 4e646524 authored by Steven Wittens's avatar Steven Wittens

#10949: Incorrect output with invalid term id

parent 3b2484bb
......@@ -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) {
......
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