mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +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).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
| $Revision: 1.30 $
|
| $Revision: 1.31 $
|
||||||
| $Date: 2007-11-09 05:55:45 $
|
| $Date: 2007-11-13 07:25:54 $
|
||||||
| $Author: streaky $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
//
|
//
|
||||||
@@ -1527,7 +1527,7 @@ function force_userupdate()
|
|||||||
{
|
{
|
||||||
global $sql,$pref,$currentUser;
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user