Fixing style errors.
This commit is contained in:
parent
22ff5a320f
commit
61cce2e700
@ -1062,13 +1062,12 @@ if (count($listofextcals))
|
|||||||
$event->ref = $event->id;
|
$event->ref = $event->id;
|
||||||
|
|
||||||
$userId = $userstatic->findUserIdByEmail($namecal);
|
$userId = $userstatic->findUserIdByEmail($namecal);
|
||||||
if(!empty($userId))
|
if (!empty($userId))
|
||||||
{
|
{
|
||||||
$event->userassigned[$userId] = $userId;
|
$event->userassigned[$userId] = $userId;
|
||||||
$event->percentage = -1;
|
$event->percentage = -1;
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
$event->type_code = "ICALEVENT";
|
$event->type_code = "ICALEVENT";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3253,7 +3253,7 @@ class User extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function findUserIdByEmail($email)
|
public function findUserIdByEmail($email)
|
||||||
{
|
{
|
||||||
if($this->findUserIdByEmailCache[$email])
|
if ($this->findUserIdByEmailCache[$email])
|
||||||
{
|
{
|
||||||
return $this->findUserIdByEmailCache[$email];
|
return $this->findUserIdByEmailCache[$email];
|
||||||
}
|
}
|
||||||
@ -3274,8 +3274,8 @@ class User extends CommonObject
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->findUserIdByEmailCache[$email] = (int)$obj->rowid;
|
$this->findUserIdByEmailCache[$email] = (int) $obj->rowid;
|
||||||
|
|
||||||
return (int)$obj->rowid;
|
return (int) $obj->rowid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user