Skip to content

Commit

Permalink
Don't crash at /home if user has no server accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Noeda committed Jun 1, 2014
1 parent cb45a68 commit 7a3f5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/home.haml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
%p
No invitations for this account
- clanless_accs = @user.accounts.select{|a| a.clan.nil?}
- if not @user.clan
- if not @user.clan and not clanless_accs.empty?
%div.text_content.non_top_post
%h2 Create a new clan
%form#create_clan_form.smallform{:method => "POST", :action => "/clan"}
Expand Down

0 comments on commit 7a3f5d0

Please sign in to comment.