diff options
Diffstat (limited to 'src/model/Prestations.php')
-rw-r--r-- | src/model/Prestations.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/Prestations.php b/src/model/Prestations.php index 8591e83..88eb4f0 100644 --- a/src/model/Prestations.php +++ b/src/model/Prestations.php | |||
@@ -70,6 +70,7 @@ class Prestations extends Model | |||
70 | } | 70 | } |
71 | public function set(string $entry, string $input) | 71 | public function set(string $entry, string $input) |
72 | { | 72 | { |
73 | $input = $this->cleanSpecialChars($input); // possibilité que $input devienne une chaine vide | ||
73 | switch($entry) | 74 | switch($entry) |
74 | { | 75 | { |
75 | case "Numéro prestation:": | 76 | case "Numéro prestation:": |
@@ -134,7 +135,7 @@ class Prestations extends Model | |||
134 | } | 135 | } |
135 | public function setCommentaires(string $value) | 136 | public function setCommentaires(string $value) |
136 | { | 137 | { |
137 | $this->commentaires = $value; | 138 | $this->commentaires = $this->cleanSpecialChars($value); // possibilité que $this->commentaires devienne une chaine vide |
138 | return $this; | 139 | return $this; |
139 | } | 140 | } |
140 | public function setNumeroPresta($value) | 141 | public function setNumeroPresta($value) |