[svn r15010] Minor - Warning avoided

skala
Julio Montoya 18 years ago
parent fa956b5122
commit e11dba3805
  1. 10
      main/mySpace/myStudents.php

@ -1,4 +1,4 @@
<?php //$Id: myStudents.php 14945 2008-04-17 21:53:37Z juliomontoya $ <?php //$Id: myStudents.php 15010 2008-04-22 16:16:13Z juliomontoya $
/* /*
============================================================================== ==============================================================================
Dokeos - elearning and course management software Dokeos - elearning and course management software
@ -107,8 +107,6 @@ Display :: display_header($nameTools);
* ====================================================================================== * ======================================================================================
*/ */
function calculHours($seconds) function calculHours($seconds)
{ {
@ -465,9 +463,10 @@ if(!empty($_GET['student']))
AND session_course_user.course_code = "'.Database::escape_string($_GET['course']).'" AND session_course_user.course_code = "'.Database::escape_string($_GET['course']).'"
ORDER BY id_session DESC'; ORDER BY id_session DESC';
$rs = api_sql_query($sql,__FILE__,__LINE__); $rs = api_sql_query($sql,__FILE__,__LINE__);
$num_row=Database::num_rows($rs);
if ($num_row > 0)
{
$le_session_id = intval(Database::result($rs,0,0)); $le_session_id = intval(Database::result($rs,0,0));
if($le_session_id>0) if($le_session_id>0)
{ {
// get session name and coach of the session // get session name and coach of the session
@ -495,6 +494,7 @@ if(!empty($_GET['student']))
$a_infosCours['tutor_name'] = $coach_infos['firstname'].' '.$coach_infos['lastname']; $a_infosCours['tutor_name'] = $coach_infos['firstname'].' '.$coach_infos['lastname'];
} }
} }
}
} // end if(api_get_setting('use_session_mode')=='true') } // end if(api_get_setting('use_session_mode')=='true')

Loading…
Cancel
Save