summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <git@evanprodromou.name>2009-01-10 14:55:53 -0500
committerEvan Prodromou <git@evanprodromou.name>2009-01-10 14:55:53 -0500
commit7c54239fc07ce441b79abee3fe227429225980d9 (patch)
tree7fb5946b93b211b9a289c62ce3998be2fadaa708
parent01d1c3bd5f7d394d7b5ea7d3763aedcc5c8e223c (diff)
Return an error in tagrss if no tag is provided
-rw-r--r--actions/tagrss.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/tagrss.php b/actions/tagrss.php
index 9187bdc87..00e549281 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) {