From: Robert Kaiser Date: Sat, 29 Oct 2016 17:18:31 +0000 (+0200) Subject: suppress error as result will be fine X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=commitdiff_plain;h=80ca2a2f90bd1462e79678e28370b187ae851e59 suppress error as result will be fine --- 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) {