Browse Source

Update PM\Delete

Visman 3 years ago
parent
commit
be79268bd9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Models/PM/Delete.php

+ 3 - 3
app/Models/PM/Delete.php

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