From 6dff727f35d10e6e7948340ccebc47a760523d46 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Thu, 18 Jan 2018 02:13:11 -0500 Subject: [PATCH] Fix undefined index notices --- redirect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redirect.php b/redirect.php index 23ad901..53769aa 100755 --- a/redirect.php +++ b/redirect.php @@ -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;