Update PM\Delete

This commit is contained in:
Visman 2021-12-04 20:09:44 +07:00
parent b2b45a62a4
commit be79268bd9

View file

@ -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);