summaryrefslogtreecommitdiff
path: root/pages/account/43.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-12-08 13:45:02 +0100
committerINOPIAE <inopiae@cacert.org>2013-12-08 13:45:02 +0100
commit1d0a062885bc55193851138c336d828feff82630 (patch)
tree50211c78c7a20e73bfe9073611af8874163782a1 /pages/account/43.php
parent0335ec43f3dc09cc28b246fb046ddd659c983326 (diff)
downloadcacert-devel-1d0a062885bc55193851138c336d828feff82630.tar.gz
cacert-devel-1d0a062885bc55193851138c336d828feff82630.tar.xz
cacert-devel-1d0a062885bc55193851138c336d828feff82630.zip
bug 1138: added function to display all email addresses of a user
Diffstat (limited to 'pages/account/43.php')
-rw-r--r--pages/account/43.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index 7e4d00a..8dcedad 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -325,9 +325,11 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
<br/>
<?
//list secondary email addresses
- $query = "select * from `email` where `memid`='".intval($row['id'])."' and `deleted`=0 and `hash`=''
- and `email`!='".mysql_escape_string($row['email'])."'";
- $dres = mysql_query($query);
+// comment to be deleted before release
+// $query = "select * from `email` where `memid`='".intval($row['id'])."' and `deleted`=0 and `hash`=''
+// and `email`!='".mysql_escape_string($row['email'])."'";
+// $dres = mysql_query($query);
+ $dres = get_email_address(intval($row['id']),mysql_real_escape_string($row['email']));
if(mysql_num_rows($dres) > 0) { ?>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>