Update PM\Delete
This commit is contained in:
parent
b2b45a62a4
commit
be79268bd9
1 changed files with 3 additions and 3 deletions
|
@ -146,19 +146,19 @@ class Delete extends Method
|
|||
$this->c->DB->exec($query, $vars);
|
||||
|
||||
$query = 'UPDATE ::pm_topics
|
||||
SET poster_id=1, poster_status=?i:status
|
||||
SET poster_id=0, poster_status=?i:status
|
||||
WHERE poster_id IN (?ai:ids)';
|
||||
|
||||
$this->c->DB->exec($query, $vars);
|
||||
|
||||
$query = 'UPDATE ::pm_topics
|
||||
SET target_id=1, target_status=?i:status
|
||||
SET target_id=0, target_status=?i:status
|
||||
WHERE target_id IN (?ai:ids)';
|
||||
|
||||
$this->c->DB->exec($query, $vars);
|
||||
|
||||
$query = 'UPDATE ::pm_posts
|
||||
SET poster_id=1
|
||||
SET poster_id=0
|
||||
WHERE poster_id IN (?ai:ids)';
|
||||
|
||||
$this->c->DB->exec($query, $vars);
|
||||
|
|
Loading…
Add table
Reference in a new issue