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

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

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

Loading…
Cancel
Save