reuse condition from choix_autre.php for Step 1 validation

This commit is contained in:
Bob Le Bricodeur 2014-11-15 01:27:38 +01:00
parent af54981cf6
commit 52f4210726

View File

@ -29,7 +29,7 @@ if (is_readable('bandeaux_local.php')) {
} }
// Step 1/3 : error if $_SESSION from info_sondage are not valid // Step 1/3 : error if $_SESSION from info_sondage are not valid
if (!Utils::issetAndNoEmpty('nom', $_SESSION) && !Utils::issetAndNoEmpty('adresse', $_SESSION) && !Utils::issetAndNoEmpty('commentaires', $_SESSION) && !Utils::issetAndNoEmpty('mail', $_SESSION)) { if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmpty('nom', $_SESSION) === false || (($config['use_smtp']) ? Utils::issetAndNoEmpty('adresse', $_SESSION) === false : false)) {
Utils::print_header ( _("Error!") ); Utils::print_header ( _("Error!") );
bandeau_titre(_("Error!")); bandeau_titre(_("Error!"));