mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-12 12:10:12 +01:00
Fixed the order of the delete statements
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
c274e21823
commit
b0e8374472
@ -556,8 +556,8 @@ class ModelUserUser extends Model {
|
|||||||
if(!$this->check_uid($uid)){ return 0; }
|
if(!$this->check_uid($uid)){ return 0; }
|
||||||
|
|
||||||
$query = $this->db->query("DELETE FROM " . TABLE_EMAIL . " WHERE uid=?", array((int)$uid));
|
$query = $this->db->query("DELETE FROM " . TABLE_EMAIL . " WHERE uid=?", array((int)$uid));
|
||||||
$query = $this->db->query("DELETE FROM " . TABLE_USER . " WHERE uid=?", array((int)$uid));
|
|
||||||
$query = $this->db->query("DELETE FROM " . TABLE_USER_SETTINGS . " WHERE username IN (SELECT username FROM " . TABLE_USER . " WHERE uid=?)", array((int)$uid));
|
$query = $this->db->query("DELETE FROM " . TABLE_USER_SETTINGS . " WHERE username IN (SELECT username FROM " . TABLE_USER . " WHERE uid=?)", array((int)$uid));
|
||||||
|
$query = $this->db->query("DELETE FROM " . TABLE_USER . " WHERE uid=?", array((int)$uid));
|
||||||
$query = $this->db->query("DELETE FROM " . TABLE_DOMAIN_USER . " WHERE uid=?", array((int)$uid));
|
$query = $this->db->query("DELETE FROM " . TABLE_DOMAIN_USER . " WHERE uid=?", array((int)$uid));
|
||||||
$query = $this->db->query("DELETE FROM " . TABLE_FOLDER_USER . " WHERE uid=?", array((int)$uid));
|
$query = $this->db->query("DELETE FROM " . TABLE_FOLDER_USER . " WHERE uid=?", array((int)$uid));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user