Minor - format code.

1.9.x
Julio Montoya 11 years ago
parent d42cd00aaf
commit ea2160a87f
  1. 4
      main/exercice/exercise_report.php
  2. 2
      main/inc/lib/events.lib.inc.php

@ -136,7 +136,9 @@ if (!empty($_REQUEST['export_report']) && $_REQUEST['export_report'] == '1') {
//Send student email @todo move this code in a class, library
if (isset($_REQUEST['comments']) &&
$_REQUEST['comments'] == 'update' &&
($is_allowedToEdit || $is_tutor) && $_GET['exeid'] == strval(intval($_GET['exeid']))) {
($is_allowedToEdit || $is_tutor) &&
$_GET['exeid'] == strval(intval($_GET['exeid']))
) {
$id = intval($_GET['exeid']); //filtered by post-condition
$track_exercise_info = get_exercise_track_exercise_info($id);
if (empty($track_exercise_info)) {

@ -1486,7 +1486,7 @@ function get_all_exercises_from_lp($lp_id, $course_id)
*
* @param int $id
* @param int $question_id
* @return str the comment
* @return string the comment
*/
function get_comments($exe_id, $question_id)
{

Loading…
Cancel
Save