From f5d4cbb385aacd21cf4ce29567297a8ec9e4bdeb Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Thu, 4 Aug 2016 18:11:31 +0200 Subject: [PATCH] Bugfix with missing array key on first form fill. --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index d64eb7d..ba9543b 100644 --- a/index.php +++ b/index.php @@ -108,7 +108,9 @@ if (!$tpl_done && $sm->hasSessionToken()) { ); $fd = new FieldDefinition($action); $fd->setPlaceholders($placeholders); - $fd->setFieldValues($_SESSION[$skey]); + if (isset($_SESSION[$skey])) { + $fd->setFieldValues($_SESSION[$skey]); + } $by_group = $fd->getGroups();