Updated mithril functions

This commit is contained in:
2017-09-28 16:41:11 +07:00
parent b704e2f1a7
commit 49310f645a
4 changed files with 66 additions and 36 deletions

View File

@@ -14,9 +14,7 @@ class Api
public function posts() {
$get = [];
$get['count'] = 0;
$get['data'] = $this->model->showJoin([
['pengumuman.status', '=', 1]
]);
$get['data'] = $this->model->showJoin();
if (array_key_exists(0, $get['data']) == false) {
$temp_data = $get['data'];