diff options
Diffstat (limited to 'actions/showstream.php')
-rw-r--r-- | actions/showstream.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/showstream.php b/actions/showstream.php index 56858b477..3b8f71114 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -191,9 +191,11 @@ class ShowstreamAction extends StreamAction { common_element('a', array('href' => common_local_url('newmessage', array('to' => $user->id))), _('Send a message')); common_element_end('li'); - common_element_start('li', array('id' => 'profile_nudge')); - common_nudge_form($user); - common_element_end('li'); + if ($user->email && $user->emailnotifynudge) { + common_element_start('li', array('id' => 'profile_nudge')); + common_nudge_form($user); + common_element_end('li'); + } } common_element_end('ul'); |