Commit 57e402e0 authored by Steven Wittens's avatar Steven Wittens
Browse files

#10949: Incorrect output with invalid term id

parent 61b174e7
......@@ -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) {
......
......@@ -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) {
......
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