summaryrefslogtreecommitdiff
path: root/manager/library/CAcert/User/Emails.php
diff options
context:
space:
mode:
Diffstat (limited to 'manager/library/CAcert/User/Emails.php')
-rw-r--r--manager/library/CAcert/User/Emails.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/manager/library/CAcert/User/Emails.php b/manager/library/CAcert/User/Emails.php
index d345ce8..44b1310 100644
--- a/manager/library/CAcert/User/Emails.php
+++ b/manager/library/CAcert/User/Emails.php
@@ -1,8 +1,10 @@
<?php
class CAcert_User_Emails {
- public function __construct() {
- Log::Log()->debug(__METHOD__);
+ private $db = null;
+
+ public function __construct($db) {
+ $this->db = $db;
}
/**
@@ -11,7 +13,7 @@ class CAcert_User_Emails {
* @return array
*/
public function getEmailAddressesByLogin($addr) {
- $db = Zend_Registry::get('auth2_dbc');
+ $db = $this->db;
/**
* find out user id by email address
@@ -51,7 +53,6 @@ class CAcert_User_Emails {
}
}
- Log::Log()->debug(__METHOD__ . ' mail addresses ' . var_export($emails, true));
return $emails;
}
-} \ No newline at end of file
+}