diff options
author | pb1dft <pb1dft@ampache> | 2008-02-23 23:44:31 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2008-02-23 23:44:31 +0000 |
commit | 6bd576a9fe2524f5c662767206efdebf0b43c8ab (patch) | |
tree | 79a1c7b402517e650cf5cd7008c1eb14accd5528 /lib/class/user.class.php | |
parent | a79d27c52ace4b0c13fc0e5f88b4d857b85557e1 (diff) | |
download | ampache-6bd576a9fe2524f5c662767206efdebf0b43c8ab.tar.gz ampache-6bd576a9fe2524f5c662767206efdebf0b43c8ab.tar.bz2 ampache-6bd576a9fe2524f5c662767206efdebf0b43c8ab.zip |
- Fixed Sorting on Admin->Browse Users
- Fixed Shoutbox and shoutbox management (pb1dft)
Diffstat (limited to 'lib/class/user.class.php')
-rw-r--r-- | lib/class/user.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); |