liquid_feedback_frontend
diff app/main/member/_show_thumb.lua @ 51:0849be391140
Public read access; Read-only API for initiatives; Prepared integration of OpenID
author | bsw |
---|---|
date | Sun Apr 04 22:05:11 2010 +0200 (2010-04-04) |
parents | 00d1004545f1 |
children | 733f65c0c0a0 |
line diff
1.1 --- a/app/main/member/_show_thumb.lua Wed Mar 31 17:50:32 2010 +0200 1.2 +++ b/app/main/member/_show_thumb.lua Sun Apr 04 22:05:11 2010 +0200 1.3 @@ -124,15 +124,17 @@ 1.4 end 1.5 1.6 -- TODO performance 1.7 - local contact = Contact:by_pk(app.session.member.id, member.id) 1.8 - if contact then 1.9 - ui.image{ 1.10 - attr = { 1.11 - alt = _"You have saved this member as contact", 1.12 - title = _"You have saved this member as contact" 1.13 - }, 1.14 - static = "icons/16/bullet_disk.png" 1.15 - } 1.16 + if app.session.member_id then 1.17 + local contact = Contact:by_pk(app.session.member.id, member.id) 1.18 + if contact then 1.19 + ui.image{ 1.20 + attr = { 1.21 + alt = _"You have saved this member as contact", 1.22 + title = _"You have saved this member as contact" 1.23 + }, 1.24 + static = "icons/16/bullet_disk.png" 1.25 + } 1.26 + end 1.27 end 1.28 end 1.29 }