Fix posts status issues

This commit is contained in:
2017-09-07 10:39:54 +07:00
parent 05f213045e
commit 6f65c067df
2 changed files with 29 additions and 20 deletions

View File

@@ -144,7 +144,7 @@ abstract class Model
try {
$db = static::connectDB();
$result = $this->showAll();
$result = $this->showAll('id', '=', $id);
foreach ($result as $post) {
foreach ($post as $key => $val) {