aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-07-13 20:58:01 +0000
committerrub <rub@piwigo.org>2006-07-13 20:58:01 +0000
commitf9147af63c484eba4790a8d19517357e6db26746 (patch)
treea52af3f7cd423c13728095777d90b79fe153e763 /include/functions_user.inc.php
parent14e73e634084c9e99401cc67b50316181400bbae (diff)
Reopened and Resolved Issue ID 0000459:
o get_email_address_as_display_text could be improve in order to display '' for null email value. git-svn-id: http://piwigo.org/svn/trunk@1462 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index a801fbc19..c3048d6b0 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -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;
+ }
}
}