From f64910b9ac7a1e1dcd854ffd86cc8a695857405a Mon Sep 17 00:00:00 2001
From: Myriam Delaruelle
 <Myriam Delaruelle@bdn-un-mdelarue.ad.univ-lorraine.fr>
Date: Tue, 5 Oct 2021 14:12:55 +0200
Subject: [PATCH] fix var_dump

---
 entity/block_competency_iena_module.php | 1 -
 lang/en/block_competency_iena.php       | 2 +-
 lang/fr/block_competency_iena.php       | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/entity/block_competency_iena_module.php b/entity/block_competency_iena_module.php
index e61e3ff..2160cc7 100644
--- a/entity/block_competency_iena_module.php
+++ b/entity/block_competency_iena_module.php
@@ -167,7 +167,6 @@ class block_competency_iena_module {
             $record->cmid=$cmid;
             $record->sectionid=$sectionid;
             $exists=$DB->get_records('block_competency_iena', array('cmid'=>$record->cmid, 'sectionid'=>$record->sectionid));
-            var_dump($exists);
             if(!$exists){
                 try {
                 $DB->insert_record('block_competency_iena', $record, false);
diff --git a/lang/en/block_competency_iena.php b/lang/en/block_competency_iena.php
index a61db35..60f27a6 100644
--- a/lang/en/block_competency_iena.php
+++ b/lang/en/block_competency_iena.php
@@ -86,6 +86,6 @@
     $string['manage_matrix'] = 'Edit matrix';
     $string['manage_matrix_end'] = 'Exit edit mode';
     $string['no_competency_description'] = 'This competency doesn\'t have a description' ;
-    $string['error_delete']="The activity/resource couldn't be deleted";
+    $string['error_delete']="The activity/resource couldn't be deleted: ";
     $string['dashboard_students']="Students dashboard";
 ?>
\ No newline at end of file
diff --git a/lang/fr/block_competency_iena.php b/lang/fr/block_competency_iena.php
index c4ab932..ec5de61 100644
--- a/lang/fr/block_competency_iena.php
+++ b/lang/fr/block_competency_iena.php
@@ -85,7 +85,7 @@
     $string['manage_matrix'] = 'Modifier la matrice';
     $string['manage_matrix_end'] = 'Quitter le mode édition';
     $string['no_competency_description'] = 'Cette compétence n\'a pas de description.';
-    $string['error_delete']="L'activité/ressource n'a pas pu être supprimée";
+    $string['error_delete']="L'activité/ressource n'a pas pu être supprimée :";
     $string['dashboard_students']="Tableau de bord étudiants";
 
 
-- 
GitLab