mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Bugfix: force_userupdate() was causing 'endless loop' issues when others scripts were invoked by javascript during the updating process. Added workaround: define("FORCE_USERUPDATE",FALSE);
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
| $Revision: 1.30 $
|
||||
| $Date: 2007-11-09 05:55:45 $
|
||||
| $Author: streaky $
|
||||
| $Revision: 1.31 $
|
||||
| $Date: 2007-11-13 07:25:54 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
//
|
||||
@@ -1527,7 +1527,7 @@ function force_userupdate()
|
||||
{
|
||||
global $sql,$pref,$currentUser;
|
||||
|
||||
if (e_PAGE == "usersettings.php" || strpos(e_SELF, ADMINDIR) == TRUE)
|
||||
if (e_PAGE == "usersettings.php" || strpos(e_SELF, ADMINDIR) == TRUE || (defined("FORCE_USERUPDATE") && (FORCE_USERUPDATE == FALSE)))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user