Browse Source

Minor - Notice

Yannick Warnier 12 years ago
parent
commit
d74812218d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/mySpace/index.php

+ 2 - 2
main/mySpace/index.php

@@ -30,7 +30,7 @@ $csv_content = array();
 $nameTools   		= get_lang('MySpace');
 
 $user_id 	 		= api_get_user_id();
-$is_coach 			= api_is_coach($_GET['session_id']); // This is used?
+$is_coach 			= api_is_coach(isset($_GET['session_id'])?$_GET['session_id']:0); // This is used?
 
 $session_id = isset($_GET['session_id']) ? intval($_GET['session_id']) : 0;
 
@@ -770,4 +770,4 @@ if (!$export_csv) {
 function get_number_of_courses() {
 	global $courses;
 	return count($courses);
-}
+}