From 8d6b1efc30af0e9468b8c5898dac5356390af92b Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 13 May 2005 00:22:37 +0000 Subject: [PATCH] Delete a user's votes and their maintainer entries when a user is deleted. --- include/user.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/user.php b/include/user.php index d2d6392..59457cf 100644 --- a/include/user.php +++ b/include/user.php @@ -143,6 +143,8 @@ class User { if(!$this->isLoggedIn()) return false; $hResult2 = query_appdb("DELETE FROM user_privs WHERE userid = '".$this->iUserId."'"); $hResult3 = query_appdb("DELETE FROM user_prefs WHERE userid = '".$this->iUserId."'"); + $hResult4 = query_appdb("DELETE FROM appVotes WHERE userid = '".$this->iUserId."'"); + $hResult5 = query_appdb("DELETE FROM appMaintainers WHERE userid = '".$this->iUserId."'"); return($hResult = query_appdb("DELETE FROM user_list WHERE userid = '".$this->iUserId."'")); }