Nonactivate a post manually causes its status changed to 3 which cannot be edited and its status cannot be changed.

This commit is contained in:
2017-09-07 13:45:05 +07:00
parent 3de31142e0
commit 796148a532
3 changed files with 8 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ abstract class Model
$sql = "UPDATE {$table} SET status = ? WHERE id = ?";
$query = $db->prepare($sql);
$query->bindValue(1, 0);
$query->bindValue(1, 3);
$query->bindValue(2, $id);
if ($query->execute()) {