Minor - format code

pull/2487/head
jmontoyaa 8 years ago
parent 5890b2eeed
commit 478ccacd44
  1. 10
      certificates/index.php
  2. 2
      main/admin/extra_fields.php
  3. 2
      main/admin/grade_models.php
  4. 4
      main/gradebook/lib/be/result.class.php

@ -55,14 +55,20 @@ switch ($action) {
// Special rules for anonymous users
if (!$certificate->isVisible()) {
Display::display_reduced_header();
echo Display::return_message(get_lang('CertificateExistsButNotPublic'), 'warning');
echo Display::return_message(
get_lang('CertificateExistsButNotPublic'),
'warning'
);
Display::display_reduced_footer();
break;
}
if (!$certificate->isAvailable()) {
Display::display_reduced_header();
echo Display::return_message(get_lang('NoCertificateAvailable'), 'error');
echo Display::return_message(
get_lang('NoCertificateAvailable'),
'error'
);
Display::display_reduced_footer();
break;
}

@ -25,7 +25,7 @@ $tool_name = null;
$action = isset($_GET['action']) ? $_GET['action'] : null;
if (!in_array($extraFieldType, ExtraField::getValidExtraFieldTypes())) {
api_not_allowed();
api_not_allowed(true);
}
$check = Security::check_token('request');

@ -173,7 +173,7 @@ switch ($action) {
if ($form->validate()) {
if ($check) {
$values = $form->exportValues();
$res = $obj->update($values);
$res = $obj->update($values);
echo Display::return_message(get_lang('ItemUpdated'), 'confirm', false);
}
$obj->display();

@ -97,7 +97,8 @@ class Result
// Verified_if_exist_evaluation
$sql = 'SELECT COUNT(*) AS count
FROM ' . $tbl_grade_results.'
WHERE evaluation_id="' . Database::escape_string($evaluation_id).'";';
WHERE evaluation_id="' . Database::escape_string($evaluation_id).'"';
$result = Database::query($sql);
$existEvaluation = Database::result($result, 0, 0);
@ -176,6 +177,7 @@ class Result
$paramcount++;
}
$sql .= ' ORDER BY u.lastname, u.firstname';
$result = Database::query($sql);
$allres = array();
while ($data = Database::fetch_array($result)) {

Loading…
Cancel
Save