From: Anne Limoges Date: Mon, 16 Sep 2013 19:10:41 +0000 (+0200) Subject: Fix profile deletion. X-Git-Tag: xorg/1.1.9~17 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ee3e477faa6c7aa33b2151ec4019dd87a8015d76;p=platal.git Fix profile 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) {