This commit is contained in:
bohung committed 2021-05-11 10:01:26 +08:00
1 parent 55a3f622a4
commit a4ef044f7f
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ class AnnouncementsController < ApplicationController
if (params['category'] != page.categories rescue true)
@annc_page_title = Category.find(Array(params['category']).first).title rescue nil
end
if (params["tags"] != page.tags && params["tags"].count == 1 rescue true)
if (params["tags"] != page.tags && !params["tags"].blank? && params["tags"].count == 1 rescue true)
@annc_page_title = Tag.find(Array(params['tags']).first).name rescue nil
end
{