Commit 33408406788bb00f8fd819d180e8d75a645a0924

Authored by Victor Costa
1 parent 27a74d7e

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 10  
11 11 def user_data_extras
12 12 proc do
13   - {:points => current_person.points}
  13 + current_person.present? ? {:points => current_person.points} : {}
14 14 end
15 15 end
16 16  
... ...