summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'projects.rb')
-rwxr-xr-xprojects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects.rb b/projects.rb
index c922a5c..b76742a 100755
--- a/projects.rb
+++ b/projects.rb
@@ -80,7 +80,7 @@ projects_q.execute(graph) do |result|
'name' => member_result[:member_name].to_s
}
- member_hash['role'] = member_result[:member_roles].to_s if member_result.key? :member_roles
+ member_hash['role'] = member_result[:member_roles].to_s unless member_result[:member_roles].nil?
project['members'] << member_hash
end