From ee3e477faa6c7aa33b2151ec4019dd87a8015d76 Mon Sep 17 00:00:00 2001 From: Anne Limoges Date: Mon, 16 Sep 2013 21:10:41 +0200 Subject: [PATCH] Fix profile deletion. --- modules/admin.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/admin.php b/modules/admin.php index d0e770f..a224b93 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -601,7 +601,10 @@ class AdminModule extends PLModule if (Post::i('del_profile', 0) != 0) { XDB::execute('DELETE FROM account_profiles WHERE uid = {?} AND pid = {?}', - $user->id(), Post::i('del_profile')); + $user->id(), Post::i('del_profile')); + XDB::execute('DELETE FROM profiles + WHERE pid = {?}', + Post::i('del_profile')); } else if (!Post::blank('new_profile')) { $profile = Profile::get(Post::t('new_profile')); if (!$profile) { -- 2.1.4