diff --git a/create_poll.php b/create_poll.php index 7b1c0a9..1d0b3f4 100644 --- a/create_poll.php +++ b/create_poll.php @@ -37,7 +37,7 @@ $pollRepository = RepositoryFactory::pollRepository(); /* ---- */ $form = isset($_SESSION['form']) ? unserialize($_SESSION['form']) : null; -if ($form === null && !($form instanceof Form)) { +if ($form === null || !($form instanceof Form)) { $form = new Form(); }