Changeset 1462


Ignore:
Timestamp:
Jul 13, 2006, 10:58:01 PM (18 years ago)
Author:
rub
Message:

Reopened and Resolved Issue ID 0000459:

o get_email_address_as_display_text could be improve in order to display for null email value.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_list.php

    r1458 r1462  
    824824      'USERNAME' => $local_user['username'],
    825825      'STATUS' => $lang['user_status_'.$local_user['status']].(($local_user['adviser'] == 'true') ? ' ['.$lang['adviser'].']' : ''),
    826       'EMAIL' => isset($local_user['email']) ? get_email_address_as_display_text($local_user['email']) : '',
     826      'EMAIL' => get_email_address_as_display_text($local_user['email']),
    827827      'GROUPS' => $groups_string,
    828828      'PROPERTIES' => (isset($local_user['enabled_high']) and ($local_user['enabled_high'] == 'true')) ? $lang['is_high_enabled'] : $lang['is_high_disabled']
  • trunk/include/functions_user.inc.php

    r1458 r1462  
    657657  global $conf;
    658658
    659   if (is_adviser())
    660   {
    661     return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
     659  if (!isset($email_address) or (trim($email_address) == ''))
     660  {
     661    return '';
    662662  }
    663663  else
    664664  {
    665     return $email_address;
     665    if (is_adviser())
     666    {
     667      return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
     668    }
     669    else
     670    {
     671      return $email_address;
     672    }
    666673  }
    667674}
Note: See TracChangeset for help on using the changeset viewer.