summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2015-02-18 21:41:45 (GMT)
committerDaniel Hoffend <dh@dotlan.net>2015-02-18 21:41:45 (GMT)
commite712eaf3caff0e5e114410bdb2cdb9d7b2ace1eb (patch)
tree4e804f0fd99a5900e368c7cd8f05d0395b203ee8
parentd45ceadf3e8ed70f839579d98dbc1a95ee6f6f0c (diff)
downloadkolab-wap-e712eaf3caff0e5e114410bdb2cdb9d7b2ace1eb.tar.gz
use $my_primary_domain parameter to reduce one lookup
-rw-r--r--lib/api/kolab_api_service_form_value.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index 2dd9aa9..6b32523 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -1657,7 +1657,7 @@ class kolab_api_service_form_value extends kolab_api_service
$valid = false;
Log::trace("_validate_email_address_in_any_of_mydomains(\$mail_address = " . var_export($mail_address, TRUE) . ")");
- if (in_array($email_domain, $this->_get_valid_domains())) {
+ if (in_array($email_domain, $this->_get_valid_domains($my_primary_domain))) {
$valid = true;
}