Skip to content

Commit

Permalink
Fix PHP warning undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisjacquet committed Apr 11, 2023
1 parent dda5ab4 commit aa40df6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Users/Search.inc.php
Expand Up @@ -293,7 +293,8 @@
{
$_SESSION['List_PHP_SELF'] = PreparePHP_SELF( $_SESSION['_REQUEST_vars'], [ 'bottom_back' ] );

if ( $_SESSION['Back_PHP_SELF'] != 'staff' )
if ( ! isset( $_SESSION['Back_PHP_SELF'] )
|| $_SESSION['Back_PHP_SELF'] !== 'staff' )
{
$_SESSION['Back_PHP_SELF'] = 'staff';
unset( $_SESSION['Search_PHP_SELF'] );
Expand Down

0 comments on commit aa40df6

Please sign in to comment.