diff --git a/app/Http/Controllers/Home/Index.php b/app/Http/Controllers/Home/Index.php index 714134d..1831096 100644 --- a/app/Http/Controllers/Home/Index.php +++ b/app/Http/Controllers/Home/Index.php @@ -49,7 +49,9 @@ class Index { $get->showName = ''; $get->showCol = ''; - $get->comments = DB::table('blg_comments')->where('post_id', $get->id)->orderBy('id', 'asc')->get(); + $get->comments = array(); + $get->comments['come'] = DB::table('blg_comments')->where('post_id', $get->id)->orderBy('id', 'asc')->get()->toArray(); + $get->comments['total'] = count($get->comments['come']); $get->username = DB::table('users')->select('username')->where('id', $get->user_id)->first()->username; $get->perm_id = DB::table('usr_perm_id')->select('perm_id')->where('user_id', $get->user_id)->first()->perm_id; @@ -59,7 +61,7 @@ class Index { $get->name_style = $p->name_style; $get->display_name = $p->display_name; - foreach ($get->comments as $k => $c) { + foreach ($get->comments['come'] as $k => $c) { if (count(userDetail($c->user_id)) > 0) { $det = userDetail($c->user_id); $c->user_id = $det['user_id']; @@ -69,7 +71,7 @@ class Index { } if ($c->isShadow == 0) { - if (getIp() != $c->ipaddress) unset($get->comments[$k]); + if (getIp() != $c->ipaddress) unset($get->comments['come'][$k]); } else { unset($c->email); diff --git a/resources/views/pages/site/profileedit.blade.php b/resources/views/pages/site/profileedit.blade.php index 96eb86e..7271a1e 100644 --- a/resources/views/pages/site/profileedit.blade.php +++ b/resources/views/pages/site/profileedit.blade.php @@ -24,12 +24,18 @@
-
パスワード 必須
-
+
パスワード
+
+ + パスワードを変更しなければ、そのまま入力しないで下さい。 +
-
パスワード確認 必須
-
+
パスワード確認
+
+ + パスワードを変更しなければ、そのまま入力しないで下さい。 +
電子メール 必須