From 5bc2148e387105281422eb08bad3c5bf5b60a4ea Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Tue, 13 Nov 2007 07:25:54 +0000 Subject: [PATCH] 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); --- class2.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/class2.php b/class2.php index fdbb2dc6a..0bbdcc3c8 100644 --- a/class2.php +++ b/class2.php @@ -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; }