Skip to content

Commit

Permalink
Fix regression causing crash with plaintext formatter [#79]
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdstaaij committed Jul 22, 2017
1 parent 9797581 commit f45549c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def get_safe_name(name)
end

def get_full_name(user)
return '' if !user
if !user['first_name'].to_s.empty?
name = user['first_name']
if $config['display_last_name'] && user['last_name'].to_s != ''
Expand All @@ -17,7 +18,7 @@ def get_full_name(user)
elsif !user['title'].to_s.empty?
return user['title']
end
return ''
''
end

def get_backup_dir
Expand Down

0 comments on commit f45549c

Please sign in to comment.