diff options
Diffstat (limited to 'src/sections/3_modify_data.php')
-rw-r--r-- | src/sections/3_modify_data.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sections/3_modify_data.php b/src/sections/3_modify_data.php index 0a67cea..279310b 100644 --- a/src/sections/3_modify_data.php +++ b/src/sections/3_modify_data.php | |||
@@ -164,8 +164,7 @@ function modifyData($Client): array | |||
164 | { | 164 | { |
165 | echo "choix: modifier" . $choix_niv3 . "\n"; | 165 | echo "choix: modifier" . $choix_niv3 . "\n"; |
166 | $ModificationPrestaForm = new ZenityEntry($choix_niv3); | 166 | $ModificationPrestaForm = new ZenityEntry($choix_niv3); |
167 | $input = exec($ModificationPrestaForm->get()); | 167 | $input = shell_exec($ModificationPrestaForm->get()); // shell_exec() retourne null si la commande échoue, exec() retourne la dernière ligne de texte en sortie ou null si aucune commande ne réussit |
168 | //if(is_string($input) && $input != '') | ||
169 | if(is_string($input)) // chaine vide autorisée | 168 | if(is_string($input)) // chaine vide autorisée |
170 | { | 169 | { |
171 | // mettre à jour la base de données | 170 | // mettre à jour la base de données |