mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Reopened and Resolved Issue ID 0000459:
o get_email_address_as_display_text could be improve in order to display '' for null email value. Merge BSF r1461:1462 into branch-1_6 git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1463 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -656,13 +656,20 @@ function get_email_address_as_display_text($email_address)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (is_adviser())
|
||||
if (!isset($email_address) or (trim($email_address) == ''))
|
||||
{
|
||||
return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
|
||||
return '';
|
||||
}
|
||||
else
|
||||
{
|
||||
return $email_address;
|
||||
if (is_adviser())
|
||||
{
|
||||
return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
|
||||
}
|
||||
else
|
||||
{
|
||||
return $email_address;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user