git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 054d817b authored by Mike Sheldon's avatar Mike Sheldon

Delete service connections when deleting a profile

parent 2523bb7b
......@@ -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