From f4c901d6cdba990903229eb4e4fc9c94bdd00383 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 25 May 2018 18:05:19 +0200 Subject: [PATCH] Typo Signed-off-by: Thomas Citharel --- create_poll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }