Browse Source

Fixing php notices

Julio Montoya 12 years ago
parent
commit
677b483dfa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/inc/lib/tracking.lib.php

+ 2 - 2
main/inc/lib/tracking.lib.php

@@ -2334,7 +2334,7 @@ class Tracking
                         $progress = $progress.'%';
                     }
 
-                    if ($course_code == $_GET['course'] && empty($_GET['session_id'])) {
+                    if (isset($_GET['course']) && $course_code == $_GET['course'] && empty($_GET['session_id'])) {
                         $html .= '<tr class="row_odd" style="background-color:#FBF09D">';
                     } else {
                         $html .= '<tr class="row_even">';
@@ -2355,7 +2355,7 @@ class Tracking
                     $html .= '</td>';
                     $html .= '<td align="center">'.$last_connection.'</td>';
                     $html .= '<td align="center">';
-                    if ($course_code == $_GET['course'] && empty($_GET['session_id'])) {
+                    if (isset($_GET['course'] ) && $course_code == $_GET['course'] && empty($_GET['session_id'])) {
                         $html .= '<a href="#">';
                         $html .= Display::return_icon('2rightarrow_na.gif', get_lang('Details'));
                     } else {