Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-05-25 18:05:19 +02:00
parent b04f95f0e1
commit f4c901d6cd
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -37,7 +37,7 @@ $pollRepository = RepositoryFactory::pollRepository();
/* ---- */ /* ---- */
$form = isset($_SESSION['form']) ? unserialize($_SESSION['form']) : null; $form = isset($_SESSION['form']) ? unserialize($_SESSION['form']) : null;
if ($form === null && !($form instanceof Form)) { if ($form === null || !($form instanceof Form)) {
$form = new Form(); $form = new Form();
} }