[svn r12536] Fix a bug when we go on this page from the admin

skala
Julian Prud'homme 19 years ago
parent 67806ba84f
commit 214e3fcb49
  1. 3
      main/mySpace/myStudents.php

@ -779,6 +779,8 @@ if(!empty($_GET['student']))
</th> </th>
</tr> </tr>
<?php <?php
if(!api_is_platform_admin()){
// courses followed by user where we are coach // courses followed by user where we are coach
if(!isset($_GET['id_coach'])){ if(!isset($_GET['id_coach'])){
$a_courses = Tracking :: get_courses_followed_by_coach($_user['user_id']); $a_courses = Tracking :: get_courses_followed_by_coach($_user['user_id']);
@ -786,6 +788,7 @@ if(!empty($_GET['student']))
else{ else{
$a_courses = Tracking :: get_courses_followed_by_coach($_GET['id_coach']); $a_courses = Tracking :: get_courses_followed_by_coach($_GET['id_coach']);
} }
}
if(count($a_courses)>0) if(count($a_courses)>0)
{ {
$csv_content[] = array(); $csv_content[] = array();

Loading…
Cancel
Save