diff --git a/e107_admin/users.php b/e107_admin/users.php index cf2e4462f..de854405d 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -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'];