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

View File

@ -27,6 +27,12 @@ class TagrssAction extends Rss10Action {
function init() { function init() {
$tag = $this->trimmed('tag'); $tag = $this->trimmed('tag');
if (!$tag) {
common_user_error(_('No tag.'));
return false;
}
$this->tag = Notice_tag::staticGet('tag', $tag); $this->tag = Notice_tag::staticGet('tag', $tag);
if (!$this->tag) { if (!$this->tag) {