[svn r15613] is_user_subscribed_in_course didn't match if user was general coach of the session

skala
Eric Marguin 17 years ago
parent fe0102bf74
commit 6158072efd
  1. 10
      main/inc/lib/course.lib.php

@ -956,6 +956,16 @@ class CourseManager
{
return true;
}
else
{
$sql = 'SELECT 1 FROM '.Database
::get_main_table(TABLE_MAIN_SESSION).' WHERE id='.intval($_SESSION['id_session']).' AND id_coach='.$user_id;
$rs = api_sql_query($sql, __FILE__, __LINE__);
if(Database::num_rows($rs)>0)
{
return true;
}
}
}
}
else

Loading…
Cancel
Save