Return an error in tagrss if no tag is provided
This commit is contained in:
parent
01d1c3bd5f
commit
7c54239fc0
|
@ -27,6 +27,12 @@ class TagrssAction extends Rss10Action {
|
|||
|
||||
function init() {
|
||||
$tag = $this->trimmed('tag');
|
||||
|
||||
if (!$tag) {
|
||||
common_user_error(_('No tag.'));
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->tag = Notice_tag::staticGet('tag', $tag);
|
||||
|
||||
if (!$this->tag) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user