From 49eb0f7f0a6696daad05b283f80710af57cdf58a Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Fri, 8 Sep 2017 15:14:05 +0700 Subject: [PATCH] Nonactivated category cannot be reactived --- App/Models/Post.php | 2 +- App/Views/Data/kategori.html | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/App/Models/Post.php b/App/Models/Post.php index d4e99ec..cfbd670 100644 --- a/App/Models/Post.php +++ b/App/Models/Post.php @@ -40,7 +40,7 @@ class Post extends \Core\Model try { $db = static::connectDB(); - $sql = "SELECT * FROM kategori WHERE status = 1"; + $sql = "SELECT * FROM kategori"; $query = $db->prepare($sql); diff --git a/App/Views/Data/kategori.html b/App/Views/Data/kategori.html index 70719c8..100e0ff 100644 --- a/App/Views/Data/kategori.html +++ b/App/Views/Data/kategori.html @@ -13,7 +13,12 @@ - +
{% endfor %}