mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 05:11:42 +02:00
Issue #3657 Add update limits on user_class changes throughout.
This commit is contained in:
@@ -996,7 +996,7 @@ if (isset($_POST['register']) && intval($pref['user_reg']) === 1)
|
||||
if ($init_class = $userMethods->userClassUpdate($row, 'userpartial'))
|
||||
{
|
||||
$allData['data']['user_class'] = $init_class;
|
||||
$user_class_update = $sql->update("user", "user_class = '{$allData['data']['user_class']}' WHERE user_name='{$allData['data']['user_name']}'");
|
||||
$user_class_update = $sql->update("user", "user_class = '{$allData['data']['user_class']}' WHERE user_name='{$allData['data']['user_name']}' LIMIT 1");
|
||||
|
||||
if($user_class_update === FALSE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user