rabin 7 years ago
parent
commit
771c1d4bc0
1 changed files with 1 additions and 1 deletions
  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);
             }
         }