Prevent undefined $_POST['Output']

This commit is contained in:
the-djmaze 2022-11-11 16:55:47 +01:00
parent ef6b95722d
commit 5e9c8eb39e
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ class LoginExternalPlugin extends \RainLoop\Plugins\AbstractPlugin
$oLogger && $oLogger->WriteException($oException);
}
if ('json' === \strtolower($_POST['Output'])) {
if ('json' === \strtolower($_POST['Output'] ?? '')) {
\header('Content-Type: application/json; charset=utf-8');
$aResult = array(
'Action' => 'ExternalLogin',