WIN-2308041133\Administrator 3 недель назад
Родитель
Сommit
726e92baf3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/system/controller/Forum.php

+ 2 - 2
app/system/controller/Forum.php

@@ -212,8 +212,8 @@ class Forum
      */
     public function commentList(Request $request)
     {
-        $page = $request->param('page', 1);
-        $pageSize = $request->param('pageSize', 10);
+        $page = (int)$request->param('page', 1);
+        $pageSize = (int)$request->param('pageSize', 10);
         $status = $request->param('status', '');
         $postId = $request->param('post_id', '');
         $content = $request->param('content', '');