diff --git a/main/lp/lp_ajax_save_item.php b/main/lp/lp_ajax_save_item.php index 494aa8aec5..5b519479bc 100755 --- a/main/lp/lp_ajax_save_item.php +++ b/main/lp/lp_ajax_save_item.php @@ -85,7 +85,7 @@ function save_item( if (!is_a($myLP, 'learnpath')) { if ($debug) { - error_log("mylp variable is not an learnpath object"); + error_log('mylp variable is not an learnpath object'); } return null; @@ -146,7 +146,7 @@ function save_item( } } else { if ($debug > 1) { - error_log("Score not updated"); + error_log('Score not updated'); } } @@ -164,7 +164,7 @@ function save_item( } } else { if ($debug > 1) { - error_log("Status not updated"); + error_log('Status not updated'); } } diff --git a/main/lp/readout_text.php b/main/lp/readout_text.php index 5e8a18366a..46cca82946 100644 --- a/main/lp/readout_text.php +++ b/main/lp/readout_text.php @@ -8,7 +8,6 @@ use Chamilo\CourseBundle\Entity\CDocument; * * @package chamilo.learnpath */ - $_in_course = true; require_once __DIR__.'/../inc/global.inc.php';