From 6bd576a9fe2524f5c662767206efdebf0b43c8ab Mon Sep 17 00:00:00 2001 From: pb1dft Date: Sat, 23 Feb 2008 23:44:31 +0000 Subject: - Fixed Sorting on Admin->Browse Users - Fixed Shoutbox and shoutbox management (pb1dft) --- lib/class/user.class.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/class/user.class.php') diff --git a/lib/class/user.class.php b/lib/class/user.class.php index 9f4e6715..d548f1f3 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -883,6 +883,10 @@ class User { $sql = "DELETE FROM `user_vote` WHERE `user`='$this->id'"; $db_results = Dba::query($sql); + // Delete their shoutbox posts + $sql = "DELETE FROM `user_shout` WHERE `user='$this->id'"; + $db_results = Dba::query($sql); + // Delete the user itself $sql = "DELETE FROM `user` WHERE `id`='$this->id'"; $db_results = Dba::query($sql); -- cgit