Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UsersManager/API.php')
-rw-r--r--plugins/UsersManager/API.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index 559099245d..a8b57c5bc3 100644
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -667,7 +667,7 @@ class API extends \Piwik\Plugin\API
throw new Exception(Piwik::translate('UsersManager_ExceptionEmailExists', $email));
}
- if ($userLogin && Common::mb_strtolower($userLogin) !== Common::mb_strtolower($email) && $this->userExists($email)) {
+ if ($userLogin && mb_strtolower($userLogin) !== mb_strtolower($email) && $this->userExists($email)) {
throw new Exception(Piwik::translate('UsersManager_ExceptionEmailExistsAsLogin', $email));
}
@@ -937,7 +937,7 @@ class API extends \Piwik\Plugin\API
$email = $userInfo['email'];
}
- $hasEmailChanged = Common::mb_strtolower($email) !== Common::mb_strtolower($userInfo['email']);
+ $hasEmailChanged = mb_strtolower($email) !== mb_strtolower($userInfo['email']);
if ($hasEmailChanged) {
$this->checkEmail($email, $userLogin);