mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Issue #3657 Add update limits on user_class changes throughout.
This commit is contained in:
@@ -1072,7 +1072,10 @@ class e_user_model extends e_admin_model
|
||||
// $this->setCore('user_class',$insert );
|
||||
// $this->saveDebug(false);
|
||||
|
||||
$uid = $this->getData('user_id');
|
||||
if(!$uid = $this->getData('user_id'))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return e107::getDb()->update('user',"user_class='".$insert."' WHERE user_id = ".$uid." LIMIT 1");
|
||||
|
||||
|
Reference in New Issue
Block a user