Return an error in tagrss if no tag is provided

This commit is contained in:
Evan Prodromou 2009-01-10 14:55:53 -05:00
parent 01d1c3bd5f
commit 7c54239fc0
1 changed files with 6 additions and 0 deletions

View File

@ -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) {