1.5.00 supprimer un echo inutile
This commit is contained in:
parent
e90929ea3b
commit
e80564c106
@ -1447,7 +1447,7 @@ class common
|
|||||||
return $courses;
|
return $courses;
|
||||||
case self::GROUP_MEMBER:
|
case self::GROUP_MEMBER:
|
||||||
foreach ($courses as $courseId => $value) {
|
foreach ($courses as $courseId => $value) {
|
||||||
// Affiche les espaces du participant et les espaces anonymes
|
// Affiche les espaces du participant et les espaces anonymes
|
||||||
$students = $this->getData(['enrolment', $courseId]);
|
$students = $this->getData(['enrolment', $courseId]);
|
||||||
if (
|
if (
|
||||||
isset($students[$userId]) === true ||
|
isset($students[$userId]) === true ||
|
||||||
@ -1461,7 +1461,6 @@ class common
|
|||||||
foreach ($courses as $courseId => $value) {
|
foreach ($courses as $courseId => $value) {
|
||||||
// Affiche les espaces anonymes
|
// Affiche les espaces anonymes
|
||||||
if ($this->getData(['course', $courseId, 'enrolment']) === self::COURSE_ENROLMENT_GUEST) {
|
if ($this->getData(['course', $courseId, 'enrolment']) === self::COURSE_ENROLMENT_GUEST) {
|
||||||
echo $this->getData(['course', $courseId, 'access']) ;
|
|
||||||
$filter[$courseId] = $courses[$courseId];
|
$filter[$courseId] = $courses[$courseId];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user