Delete a user's votes and their maintainer entries when a user is
deleted.
This commit is contained in:
@@ -143,6 +143,8 @@ class User {
|
|||||||
if(!$this->isLoggedIn()) return false;
|
if(!$this->isLoggedIn()) return false;
|
||||||
$hResult2 = query_appdb("DELETE FROM user_privs WHERE userid = '".$this->iUserId."'");
|
$hResult2 = query_appdb("DELETE FROM user_privs WHERE userid = '".$this->iUserId."'");
|
||||||
$hResult3 = query_appdb("DELETE FROM user_prefs 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."'"));
|
return($hResult = query_appdb("DELETE FROM user_list WHERE userid = '".$this->iUserId."'"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user