rabin hace 7 años
padre
commit
771c1d4bc0
Se han modificado 1 ficheros con 1 adiciones y 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']));
         $this->data['course'] = Dever::load('content/course-getAll', array('option_info_id' => $this->data['info']['id']));
 
 
         if ($this->data['course']) {
         if ($this->data['course']) {
-            foreach ($course as $k => $v) {
+            foreach ($this->data['course'] as $k => $v) {
                 $this->data['course'][$k] = $this->one($v);
                 $this->data['course'][$k] = $this->one($v);
             }
             }
         }
         }