Fix undefined index notices
This commit is contained in:
parent
9b9d68f4af
commit
6dff727f35
@ -165,7 +165,7 @@ function ParseSenderEmail($from) {
|
||||
$users[$data[0]] = $data[1];
|
||||
}
|
||||
}
|
||||
if ($users[$email]) {
|
||||
if (isset($users[$email])) {
|
||||
$project = $users[$email];
|
||||
}
|
||||
return $project;
|
||||
@ -182,7 +182,7 @@ function ParseSenderDomain($email) {
|
||||
$domains[$data[0]] = $data[1];
|
||||
}
|
||||
}
|
||||
if($domains[$domain]) {
|
||||
if(isset($domains[$domain])) {
|
||||
$project = $domains[$domain];
|
||||
}
|
||||
return $project;
|
||||
|
Loading…
Reference in New Issue
Block a user