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')
-rwxr-xr-xplugins/UsersManager/API.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index 09f09c0813..46024d1295 100755
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -327,7 +327,8 @@ class Piwik_UsersManager_API extends Piwik_Apiable
{
$email = $userInfo['email'];
}
- else
+
+ if($email != $userInfo['email'])
{
self::checkEmail($email);
}
@@ -391,16 +392,15 @@ class Piwik_UsersManager_API extends Piwik_Apiable
*
* @return bool true if the user is known
*/
-
static public function userEmailExists( $userEmail )
{
- Piwik::checkUserHasSomeAdminAccess();
+ Piwik::checkUserHasSomeAdminAccess();
$count = Zend_Registry::get('db')->fetchOne("SELECT count(*)
FROM ".Piwik::prefixTable("user"). "
WHERE email = ?", $userEmail);
return $count != 0;
}
-
+
/**
* Set an access level to a given user for a list of websites ID.
*