diff --git a/App/Controllers/Posts.php b/App/Controllers/Posts.php
index e52ee20..57e8993 100644
--- a/App/Controllers/Posts.php
+++ b/App/Controllers/Posts.php
@@ -27,7 +27,8 @@ class Posts
$table = 'pengumuman';
$valid = $this->post->showAll([
- ['valid_at', '<=', $now]
+ ['valid_at', '<=', $now],
+ ['status', '!=', 3]
]);
if ($valid !== false) {
foreach ($valid as $fields) {
@@ -38,7 +39,8 @@ class Posts
}
$not_valid = $this->post->showAll([
- ['valid_at', '>', $now]
+ ['valid_at', '>', $now],
+ ['status', '!=', 3]
]);
if ($not_valid !== false) {
foreach ($not_valid as $fields) {
@@ -49,7 +51,8 @@ class Posts
}
$expired = $this->post->showAll([
- ['expired_at', '<', $now]
+ ['expired_at', '<', $now],
+ ['status', '!=', 3]
]);
if ($expired !== false) {
foreach ($expired as $fields) {
diff --git a/App/Views/Data/edit_pengumuman.html b/App/Views/Data/edit_pengumuman.html
index 3b5063c..4983b7e 100644
--- a/App/Views/Data/edit_pengumuman.html
+++ b/App/Views/Data/edit_pengumuman.html
@@ -101,7 +101,7 @@