From 49b6411637afaf81cc0846a84985683f5f716aa9 Mon Sep 17 00:00:00 2001
From: Okhin <okhin@okhin.fr>
Date: Mon, 6 May 2019 15:03:29 +0200
Subject: [PATCH] Initializing message with a list instead of an empty string

---
 www/index.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/index.php b/www/index.php
index 3ad2db4..33a865d 100644
--- a/www/index.php
+++ b/www/index.php
@@ -45,10 +45,10 @@ $f3->set('ONERROR', function ($f3) {
 
     // If neither error or message are set, define them
     if (!$f3->exists('SESSION.message')) {
-        $f3->push('SESSION.message', '');
+        $f3->push('SESSION.message', []);
     }
     if (!$f3->exists('SESSION.error')) {
-        $f3->push('SESSION.error', '');
+        $f3->push('SESSION.error', []);
     }
     $f3->get('container')['session']->set('csrf', $csrf);
 
-- 
GitLab