summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/band.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/band.rb b/lib/band.rb
index 49180d8..ac0a9db 100644
--- a/lib/band.rb
+++ b/lib/band.rb
@@ -17,8 +17,10 @@ class Band
@contact = Contact.new(params['contact'])
@members = []
- params['members'].each do |k, m|
- @members << Member.new(m)
+ if params['members']
+ params['members'].each do |k, m|
+ @members << Member.new(m)
+ end
end
@songs = []