From 9cfbacaece58d6a22a0b67cb84ebf57fdfbee8d0 Mon Sep 17 00:00:00 2001 From: TechhDan Date: Fri, 11 Dec 2020 13:45:41 -0500 Subject: [PATCH] Fix undefined index notice by verifying variable exists first --- OAuth_2/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OAuth_2/index.php b/OAuth_2/index.php index 5025133..9ca6022 100755 --- a/OAuth_2/index.php +++ b/OAuth_2/index.php @@ -33,7 +33,7 @@ echo "
Clean Session
"; - } else if ($_SESSION['userInfo']) { + } else if (!empty($_SESSION['userInfo'])) { echo "

User information obtained from open id call

"; echo "

Given Name: {$_SESSION['userInfo']['givenName']}

"; echo "

Family Name: {$_SESSION['userInfo']['familyName']}

";