1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

Fixes #994 - Leftover user_extended DB entries after user deleted.

This commit is contained in:
Cameron 2015-05-07 20:54:44 -07:00
parent 6c2d385240
commit 51b121610f

View File

@ -378,10 +378,20 @@ class users_admin_ui extends e_admin_ui
}
public function afterDelete($deletedData,$id=null)
{
if(!empty($id))
{
$sql = e107::getDb();
$sql->delete('user_extended',"user_extended_id = ".$id);
}
}
public function beforeUpdate($new_data, $old_data, $id)
{
$tp = e107::getParser();
if(empty($new_data['user_password']))
{
$new_data['user_password'] = $old_data['user_password'];