rabin %!s(int64=7) %!d(string=hai) anos
pai
achega
771c1d4bc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      content/v1/Course.php

+ 1 - 1
content/v1/Course.php

@@ -52,7 +52,7 @@ class Course extends Base
         $this->data['course'] = Dever::load('content/course-getAll', array('option_info_id' => $this->data['info']['id']));
 
         if ($this->data['course']) {
-            foreach ($course as $k => $v) {
+            foreach ($this->data['course'] as $k => $v) {
                 $this->data['course'][$k] = $this->one($v);
             }
         }