diff options
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 5f4866af4..66696ea07 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -149,11 +149,12 @@ * @return true|false
*/
public function delete()
- {
- if (!parent::delete())
- return false;
+ { + if (!delete_user_entity($this->get('guid'))) + return false; +
+ return parent::delete();
- return delete_user_entity($this->get('guid'));
}
/**
|