use instead of ['request'] to fix behaviour when request has been emptied due to failed auth

This commit is contained in:
Isaac Connor 2018-01-26 12:56:38 -05:00
parent 772d3472fb
commit bb9d640c01
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ if ( $redirect ) {
return;
}
if ( isset( $_REQUEST['request'] ) ) {
if ( $request ) {
foreach ( getSkinIncludes( 'ajax/'.$request.'.php', true, true ) as $includeFile ) {
if ( !file_exists( $includeFile ) )
Fatal( "Request '$request' does not exist" );