Commit 33408406788bb00f8fd819d180e8d75a645a0924
1 parent
27a74d7e
Exists in
master
and in
1 other branch
Fix score information at user data extras
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/gamification_plugin.rb
@@ -10,7 +10,7 @@ class GamificationPlugin < Noosfero::Plugin | @@ -10,7 +10,7 @@ class GamificationPlugin < Noosfero::Plugin | ||
10 | 10 | ||
11 | def user_data_extras | 11 | def user_data_extras |
12 | proc do | 12 | proc do |
13 | - {:points => current_person.points} | 13 | + current_person.present? ? {:points => current_person.points} : {} |
14 | end | 14 | end |
15 | end | 15 | end |
16 | 16 |