|
|
@@ -145,7 +145,12 @@ class Education
|
|
|
];
|
|
|
$course_list[] = $course_info;
|
|
|
}
|
|
|
- $count_and_all = $this->getCountAndAlll([$gr_id]);
|
|
|
+ $count_and_all = [];
|
|
|
+ if (is_array($gr_id)) {
|
|
|
+ $count_and_all = $this->getCountAndAlll($gr_id);
|
|
|
+ } else {
|
|
|
+ $count_and_all = $this->getCountAndAlll([$gr_id]);
|
|
|
+ }
|
|
|
$result = [
|
|
|
'course_list' => $course_list,
|
|
|
'count' => $count_and_all[0]['count'],
|