Skip to content

Commit

Permalink
added nil guard for case of subtitle is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 29, 2012
1 parent 2f5da1d commit 90de643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/plugin/title_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ module DiaryBase
def all_subtitles_to_html
titles = Array.new
each_section do |section|
titles << section.subtitle_to_html.strip
titles << (section.subtitle_to_html || '').strip
end
return titles
end

def all_stripped_subtitles_to_html
return all_subtitles_to_html unless categorizable?
titles = Array.new
Expand Down

0 comments on commit 90de643

Please sign in to comment.