Skip to content

Commit f45549c

Browse files
committed
Fix regression causing crash with plaintext formatter [#79]
1 parent 9797581 commit f45549c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/util.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def get_safe_name(name)
88
end
99

1010
def get_full_name(user)
11+
return '' if !user
1112
if !user['first_name'].to_s.empty?
1213
name = user['first_name']
1314
if $config['display_last_name'] && user['last_name'].to_s != ''
@@ -17,7 +18,7 @@ def get_full_name(user)
1718
elsif !user['title'].to_s.empty?
1819
return user['title']
1920
end
20-
return ''
21+
''
2122
end
2223

2324
def get_backup_dir

0 commit comments

Comments
 (0)