Update Post\Delete() for editor_id
This commit is contained in:
parent
9b4b6b5607
commit
29c5b78aab
1 changed files with 12 additions and 0 deletions
|
@ -93,11 +93,23 @@ class Delete extends Action
|
|||
WHERE poster_id IN (?ai:users)';
|
||||
|
||||
$this->c->DB->exec($query, $vars);
|
||||
|
||||
$query = 'UPDATE ::posts
|
||||
SET editor_id=1
|
||||
WHERE editor_id IN (?ai:users)';
|
||||
|
||||
$this->c->DB->exec($query, $vars);
|
||||
}
|
||||
if ($usersDel) {
|
||||
$vars = [
|
||||
':users' => $usersDel,
|
||||
];
|
||||
$query = 'UPDATE ::posts
|
||||
SET editor_id=1
|
||||
WHERE editor_id IN (?ai:users)';
|
||||
|
||||
$this->c->DB->exec($query, $vars);
|
||||
|
||||
$query = 'SELECT p.topic_id
|
||||
FROM ::posts as p
|
||||
WHERE p.poster_id IN (?ai:users)
|
||||
|
|
Loading…
Add table
Reference in a new issue