Minor - fix php notices + format code

pull/4020/head^2
Julio 4 years ago
parent 5c7f525862
commit 9a6e0b51c4
  1. 6
      public/main/gradebook/lib/fe/catform.class.php
  2. 5
      public/main/inc/lib/api.lib.php

@ -5,8 +5,6 @@
use Chamilo\CourseBundle\Entity\CDocument;
/**
* Class CatForm.
*
* @author Stijn Konings
*/
class CatForm extends FormValidator
@ -281,7 +279,7 @@ class CatForm extends FormValidator
$defaultCertification = $this->category_object->getCertificateMinScore();
}
if (isset($this->category_object) &&
if (!empty($this->category_object) &&
0 == $this->category_object->get_parent_id()
) {
$model = ExerciseLib::getCourseScoreModel();
@ -341,7 +339,7 @@ class CatForm extends FormValidator
get_lang('Description')
);
if (isset($this->category_object) &&
if (!empty($this->category_object) &&
0 == $this->category_object->get_parent_id() &&
(api_is_platform_admin() || 'true' === api_get_setting('teachers_can_change_grade_model_settings'))
) {

@ -5048,10 +5048,11 @@ function api_request_uri()
return $uri;
}
/** Gets the current access_url id of the Chamilo Platform.
/**
* Gets the current access_url id of the Chamilo Platform.
* @return int access_url_id of the current Chamilo Installation
* @author Julio Montoya <gugli100@gmail.com>
*
* @return int access_url_id of the current Chamilo Installation
*/
function api_get_current_access_url_id()
{

Loading…
Cancel
Save