]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Return an error in tagrss if no tag is provided
authorEvan Prodromou <git@evanprodromou.name>
Sat, 10 Jan 2009 19:55:53 +0000 (14:55 -0500)
committerEvan Prodromou <git@evanprodromou.name>
Sat, 10 Jan 2009 19:55:53 +0000 (14:55 -0500)
actions/tagrss.php

index 9187bdc873e1f53a21e111192839c3de6d7aee43..00e549281b51a1ef978360bac9da42b5d15a3490 100644 (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) {