Skip to content

Commit

Permalink
Fix e107inc#5052: Guard potentially undefined e_PAGE constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltik committed Aug 2, 2023
1 parent 95296d1 commit 68b2401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class2.php
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ function include_lan($path, $force = false)
*/
function force_userupdate($currentUser)
{
if (e_PAGE == 'usersettings.php' || (defined('FORCE_USERUPDATE') && (FORCE_USERUPDATE == false)) || strpos(e_SELF, ADMINDIR) == true )
if (defined('e_PAGE') && e_PAGE == 'usersettings.php' || (defined('FORCE_USERUPDATE') && !FORCE_USERUPDATE) || strpos(e_SELF, ADMINDIR))
{
return false;
}
Expand Down

0 comments on commit 68b2401

Please sign in to comment.