Commit 9c5e86e8 authored by Mike Sheldon's avatar Mike Sheldon

Delete service connections when deleting a profile

parent f2987437
......@@ -58,6 +58,7 @@ if ($logged_in == false) {
$adodb->Execute('DELETE FROM User_Relationships WHERE uid2 = ' . $this_user->uniqueid);
$adodb->Execute('DELETE FROM Banned_Tracks WHERE userid = ' . $this_user->uniqueid);
$adodb->Execute('DELETE FROM Loved_Tracks WHERE userid = ' . $this_user->uniqueid);
$adodb->Execute('DELETE FROM Service_Connections WHERE userid = ' . $this_user->uniqueid);
$adodb->Execute('DELETE FROM Users WHERE uniqueid = ' . $this_user->uniqueid);
} catch (Exception $e) {
$smarty->assign('error', 'Error!');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment