Filtre avant cours
This commit is contained in:
parent
6c0a4cd884
commit
06f74c1be7
@ -74,7 +74,12 @@ class course extends common
|
|||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
if ($this->getCoursesByUser($this->getUser('id'), $this->getUser('group'))) {
|
self::$courses = array();
|
||||||
|
if (
|
||||||
|
$this->getUser('id')
|
||||||
|
&& $this->getUser('group')
|
||||||
|
&& $this->getCoursesByUser($this->getUser('id'), $this->getUser('group'))
|
||||||
|
) {
|
||||||
foreach ($this->getCoursesByUser($this->getUser('id'), $this->getUser('group')) as $courseId => $courseValue) {
|
foreach ($this->getCoursesByUser($this->getUser('id'), $this->getUser('group')) as $courseId => $courseValue) {
|
||||||
$categorieUrl = helper::baseUrl() . 'course/suscribe/' . $courseId;
|
$categorieUrl = helper::baseUrl() . 'course/suscribe/' . $courseId;
|
||||||
$authorId = $this->getData(['course', $courseId, 'author']);
|
$authorId = $this->getData(['course', $courseId, 'author']);
|
||||||
|
Loading…
Reference in New Issue
Block a user