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