diff --git a/app/controller/Help.php b/app/controller/Help.php index 9951210..aced41e 100644 --- a/app/controller/Help.php +++ b/app/controller/Help.php @@ -64,9 +64,7 @@ class Help $lastIndex = lastindex(); - if($lastIndex == 0) { - $lastIndex = 1; - } + $result = []; @@ -78,6 +76,9 @@ class Help } } + if($lastIndex == 0) { + $lastIndex = 1; + } $list = Db::name("appHelp")->where("student_id",$student_id)->limit(env("page_count"))->order('count desc')->paginate([ "list_rows"=>env("PAGE_COUNT"),