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