From 7c54239fc07ce441b79abee3fe227429225980d9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 10 Jan 2009 14:55:53 -0500 Subject: [PATCH] Return an error in tagrss if no tag is provided --- actions/tagrss.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actions/tagrss.php b/actions/tagrss.php index 9187bdc873..00e549281b 100644 --- a/actions/tagrss.php +++ b/actions/tagrss.php @@ -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) {