From 291267953a2c3e9bb1f0c480205edd5070c7edbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 5 Jan 2014 20:46:45 +0100 Subject: [PATCH] =?UTF-8?q?Added=20a=20new=20check=20to=20don=E2=80=99t=20?= =?UTF-8?q?allow=20users=20create=20standard=20polls=20without=20any=20opt?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/opensurvey/wizard/choix_autre.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php index d388e60c111..c02fe4822db 100644 --- a/htdocs/opensurvey/wizard/choix_autre.php +++ b/htdocs/opensurvey/wizard/choix_autre.php @@ -80,7 +80,7 @@ if (isset($_POST["confirmecreation"])) } //message d'erreur si aucun champ renseigné - if ($testremplissage != "ok") { + if ($testremplissage != "ok" || (!$toutchoix)) { setEventMessage($langs->trans("ErrorOpenSurveyOneChoice"), 'errors'); } else {