File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353
5454$ qa_content = qa_content_prepare (true );
5555
56- $ qa_content ['title ' ] = qa_lang_html_sub ('main/questions_tagged_x ' , qa_html ($ tag ));
56+ if (count ($ questions ) > 0 ) {
57+ $ qa_content ['title ' ] = qa_lang_html_sub ('main/questions_tagged_x ' , qa_html ($ tag ));
58+ } else {
59+ $ qa_content ['title ' ] = qa_lang_html ('main/no_questions_found ' );
60+ header ('HTTP/1.0 404 Not Found ' );
61+ }
5762
5863if (isset ($ userid ) && isset ($ tagword )) {
5964 $ favoritemap = qa_get_favorite_non_qs_map ();
6368 qa_lang_sub ($ favorite ? 'main/remove_x_favorites ' : 'main/add_tag_x_favorites ' , $ tagword ['word ' ]));
6469}
6570
66- if (!count ($ questions ))
67- $ qa_content ['q_list ' ]['title ' ] = qa_lang_html ('main/no_questions_found ' );
68-
6971$ qa_content ['q_list ' ]['form ' ] = array (
7072 'tags ' => 'method="post" action=" ' . qa_self_html () . '" ' ,
7173
You can’t perform that action at this time.
0 commit comments