diff options
author | polo <ordipolo@gmx.fr> | 2024-06-02 23:19:01 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-06-02 23:19:01 +0200 |
commit | 546302cde914a2143f86e6a384cbc5085d55396a (patch) | |
tree | b6e059ed2e7689c29c06d7c92c0d4f30aa9b5022 /src/model/DevisFactures.php | |
parent | 46591fffb0226b0fa87e68248b06182389825f80 (diff) | |
download | AppliGestionPHP-546302cde914a2143f86e6a384cbc5085d55396a.zip |
méthode cleanSpecialChars() pour gérer les ", un peu sale
Diffstat (limited to 'src/model/DevisFactures.php')
-rw-r--r-- | src/model/DevisFactures.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/DevisFactures.php b/src/model/DevisFactures.php index 7c31f13..c667fb2 100644 --- a/src/model/DevisFactures.php +++ b/src/model/DevisFactures.php | |||
@@ -65,6 +65,7 @@ class DevisFactures extends Model | |||
65 | 65 | ||
66 | public function set(string $entry, string $input) // trouve la bonne méthode | 66 | public function set(string $entry, string $input) // trouve la bonne méthode |
67 | { | 67 | { |
68 | $input = $this->cleanSpecialChars($input); // possibilité que $input devienne une chaine vide | ||
68 | switch($entry) | 69 | switch($entry) |
69 | { | 70 | { |
70 | case "Tâches:": | 71 | case "Tâches:": |