Delete a users comments when the user is deleted. Return the correct

value in cron/cleanup.php when looking for user associated data.
This commit is contained in:
Chris Morgan
2005-05-13 00:28:28 +00:00
committed by WineHQ
parent 8d6b1efc30
commit 342bd66485
2 changed files with 2 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ class User {
$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."'");
$hResult6 = query_appdb("DELETE FROM appComments WHERE userId = '".$this->iUserId."'");
return($hResult = query_appdb("DELETE FROM user_list WHERE userid = '".$this->iUserId."'"));
}