Forgot to add the category view too.

このコミットが含まれているのは:
テクニカル諏訪子 2018-04-23 18:22:06 +09:00
コミット 156a278df1
1個のファイルの変更9行の追加5行の削除

ファイルの表示

@ -1105,8 +1105,12 @@ class BoardController extends Controller {
$res = array();
foreach($fors as $f) {
$ldet = $this->getLastPostOfForum($f['id']);
$topicsuu = DB::table('for_threads')->where('for_id', $f['id'])->count();
$replysuu = $this->countPostsInForum($f['id']);
if ($f['last_uid'] != 0) {
$user = $this->objUser->getUser($f['last_uid'], $request)->toArray();
$user = $this->objUser->getUser($ldet['uid'], $request)->toArray();
$showName = "";
$showCol = "";
@ -1141,13 +1145,13 @@ class BoardController extends Controller {
// Compile.
$res[] = array(
'f_id' => $f['id'],
'f_last_uid' => $f['last_uid'],
'f_last_uid' => $ldet['uid'],
'f_cat' => $f['cat_id'],
'f_name' => $f['title'],
'f_desc' => $f['description'],
'f_topics' => $f['threads'],
'f_posts' => $f['posts'],
'f_last' => $f['last_date'],
'f_topics' => $topicsuu,
'f_posts' => $replysuu,
'f_last' => $ldet['date'],
'c_name' => $catname[0]->title,
'u_name' => $showName,
'u_col' => $showCol