1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Fixes #5052, Issue #5041 - Usersettings update redirect.

This commit is contained in:
camer0n
2023-08-16 07:52:07 -07:00
parent 0b6b28b455
commit 5ff319cd5c

View File

@@ -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 (defset('e_PAGE') === 'usersettings.php' || defset('e_REQUEST_URI') === e107::url('user/myprofile/edit') || (defined('FORCE_USERUPDATE') && !FORCE_USERUPDATE) || strpos(e_SELF, ADMINDIR))
{
return false;
}