Fixing style errors.

This commit is contained in:
stickler-ci 2020-08-25 10:20:48 +00:00
parent a7895f3496
commit 2cbb4081fe

View File

@ -3240,9 +3240,9 @@ class User extends CommonObject
/**
* Cache the SQL results of the function "findUserIdByEmail($email)"
*
*
* NOTE: findUserIdByEmailCache[...] === -1 means not found in database
*
*
* @var array
*/
private $findUserIdByEmailCache;
@ -3270,13 +3270,12 @@ class User extends CommonObject
$sql = 'SELECT rowid';
$sql .= ' FROM '.MAIN_DB_PREFIX.'user';
if (!empty($conf->global->AGENDA_DISABLE_EXACT_USER_EMAIL_COMPARE_FOR_EXTERNAL_CALENDAR))
{
$sql .= ' WHERE email LIKE "%'.$email.'%"';
}
else
{
else {
$sql .= ' WHERE email = "'.$email.'"';
}