whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: recover if there is no given name
Date Mon, 09 Apr 2018 09:43:56 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new ce7ffc5  recover if there is no given name
ce7ffc5 is described below

commit ce7ffc56cc0bbefc441ae461455868c447cf4452
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Mon Apr 9 05:43:32 2018 -0400

    recover if there is no given name
---
 www/roster/models/committer.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index 34c2134..c8029ac 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -32,7 +32,7 @@ class Committer
       name[:ldap] = person.attrs['cn'].first.force_encoding('utf-8')
     end
 
-    unless person.attrs['givenName'].empty?
+    unless (person.attrs['givenName'] || []).empty?
       name[:given_name] = person.attrs['givenName'].first.force_encoding('utf-8')
     end
 

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

Mime
View raw message