Fixing style errors.
This commit is contained in:
parent
a7895f3496
commit
2cbb4081fe
@ -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.'"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user