ZxcZxc123 2 lat temu
rodzic
commit
9b1d5677e9
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      app/api/controller/Education.php

+ 3 - 0
app/api/controller/Education.php

@@ -145,6 +145,9 @@ class Education
             ];
             $course_list[] = $course_info;
         }
+        if (!is_array($gr_id)) {
+            $gr_id = [$gr_id];
+        }
         $count_and_all = $this->getCountAndAlll($gr_id);
         $result = [
             'course_list' => $course_list,