Better check on blank tag

This commit is contained in:
Evan Prodromou 2009-01-10 14:57:37 -05:00
parent 7c54239fc0
commit a3b72d9e3b

View File

@ -28,7 +28,7 @@ class TagrssAction extends Rss10Action {
function init() {
$tag = $this->trimmed('tag');
if (!$tag) {
if (!isset($tag) || mb_strlen($tag) == 0) {
common_user_error(_('No tag.'));
return false;
}