From 80ca2a2f90bd1462e79678e28370b187ae851e59 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 29 Oct 2016 19:18:31 +0200 Subject: [PATCH] suppress error as result will be fine --- authorize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorize.php b/authorize.php index 33ffd09..ac0979a 100644 --- a/authorize.php +++ b/authorize.php @@ -71,7 +71,7 @@ if (!count($errors)) { } else { // Handle authorize request, forwarding code in GET parameters if the user has authorized your client. - $is_authorized = (($_POST['authorized'] === 'yes') || ($request->query['scope'] == 'email')); + $is_authorized = ((@$_POST['authorized'] === 'yes') || ($request->query['scope'] == 'email')); $server->handleAuthorizeRequest($request, $response, $is_authorized, $user['id']); /* For testing only if ($is_authorized) { -- 2.43.0