diff --git a/drupal/sites/default/boinc/themes/boinc/templates/user-profile.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/user-profile.tpl.php index 20734366fb..8ec32710c0 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/user-profile.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/user-profile.tpl.php @@ -55,10 +55,13 @@ $opinions = $content_profile->field_opinions[0]['value']; $user_links = array(); if ($user->uid AND ($user->uid != $account->uid)) { - $user_links[] = array( - 'title' => t('Send message'), - 'href' => privatemsg_get_link(array($account)) - ); + if (module_exists('private_messages')) { + // if (function_exists('privatemsg_get_link')) { + $user_links[] = array( + 'title' => t('Send message'), + 'href' => privatemsg_get_link(array($account)) + ); + } $user_links[] = array( 'title' => t('Add as friend'), 'href' => "flag/confirm/flag/friend/{$account->uid}" @@ -114,8 +117,12 @@ $link_index = 0;