From f45549cfcc200ef206cb0a44ac212e7cbf6e2d19 Mon Sep 17 00:00:00 2001 From: Tim van der Staaij Date: Sat, 22 Jul 2017 15:54:46 +0200 Subject: [PATCH] Fix regression causing crash with plaintext formatter [#79] --- lib/util.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util.rb b/lib/util.rb index 2e3ebb4..034025b 100644 --- a/lib/util.rb +++ b/lib/util.rb @@ -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 != '' @@ -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