Skip to content

Commit

Permalink
修复php8.0表单无数据会报错
Browse files Browse the repository at this point in the history
  • Loading branch information
tider committed Aug 31, 2022
1 parent cf7efbc commit 24a7b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function index(){
$page = new \Gy_Library\GyPage($count, $per_page);
}

$data_list = $model->getListForPage($map, $page->nowPage, $page->listRows, 'create_date desc');
$data_list = $model->getListForPage($map, $page->nowPage, $page->listRows, 'create_date desc') ?: [];

$this->getFormSubmitNum($data_list);

Expand Down

0 comments on commit 24a7b0e

Please sign in to comment.