From: Evan Prodromou Date: Sat, 10 Jan 2009 19:55:53 +0000 (-0500) Subject: Return an error in tagrss if no tag is provided X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c54239fc07ce441b79abee3fe227429225980d9;p=quix0rs-gnu-social.git Return an error in tagrss if no tag is provided --- 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) {