summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-04-07 01:22:06 +0200
committerMichael Tänzer <neo@nhng.de>2014-04-07 01:22:06 +0200
commit8654cbfb0e6eed0dda52379d9bfd971c3e254b74 (patch)
tree8e40e35199470facaaafceeb966b89b44fdea929 /includes
parentecb426405c54a71511c2c4949e22fb030d8cec3f (diff)
downloadcacert-devel-8654cbfb0e6eed0dda52379d9bfd971c3e254b74.tar.gz
cacert-devel-8654cbfb0e6eed0dda52379d9bfd971c3e254b74.tar.xz
cacert-devel-8654cbfb0e6eed0dda52379d9bfd971c3e254b74.zip
bug 1138: rename interface to better describe what these functions do
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'includes')
-rw-r--r--includes/notary.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index 0be8303..1d8b5f0 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -1312,15 +1312,15 @@ function get_alerts($userid){
* @param int $deleted - states if deleted data should be visible, default = 0 - not visible
* @return resource - a mysql result set
*/
-function get_email_address($userid, $primary,$deleted=0){
+function get_email_addresses($userid, $exclude, $deleted=0){
//should be entered in account/2.php
$userid = intval($userid);
$filter='';
if (0==$deleted) {
$filter .= ' and `deleted`=0';
}
- if ($primary) {
- $filter= $filter." and `email`!='".mysql_real_escape_string($primary)."'";
+ if ($exclude) {
+ $filter .= " and `email`!='".mysql_real_escape_string($exclude)."'";
}
$query = "select * from `email` where `memid`='".$userid."' and `hash`='' ".$filter." order by `created`";
return mysql_query($query);
@@ -1348,7 +1348,7 @@ function get_domains($userid, $deleted=0){
* @param int $userid
* @return resource - a mysql result set
*/
-function get_training_result($userid){
+function get_training_results($userid){
//should be entered in account/55.php
$userid = intval($userid);
$query = "SELECT `CP`.`pass_date`, `CT`.`type_text`, `CV`.`test_text` ".