summaryrefslogtreecommitdiff
path: root/src/model/Locations.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-06-02 23:19:01 +0200
committerpolo <ordipolo@gmx.fr>2024-06-02 23:19:01 +0200
commit546302cde914a2143f86e6a384cbc5085d55396a (patch)
treeb6e059ed2e7689c29c06d7c92c0d4f30aa9b5022 /src/model/Locations.php
parent46591fffb0226b0fa87e68248b06182389825f80 (diff)
downloadAppliGestionPHP-546302cde914a2143f86e6a384cbc5085d55396a.zip
méthode cleanSpecialChars() pour gérer les ", un peu sale
Diffstat (limited to 'src/model/Locations.php')
-rw-r--r--src/model/Locations.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/Locations.php b/src/model/Locations.php
index ead2727..103cecd 100644
--- a/src/model/Locations.php
+++ b/src/model/Locations.php
@@ -36,6 +36,7 @@ class Locations extends Model
36 } 36 }
37 public function set(string $entry, string $input) 37 public function set(string $entry, string $input)
38 { 38 {
39 $input = $this->cleanSpecialChars($input); // possibilité que $input devienne une chaine vide
39 switch($entry) 40 switch($entry)
40 { 41 {
41 case "Désignation:": 42 case "Désignation:":