From 8cace16d0d9f6333126298dd36329a879714d592 Mon Sep 17 00:00:00 2001 From: Fred Date: Tue, 30 Jun 2020 21:50:40 +0200 Subject: [PATCH] 10.2.01 No install window on fresh install --- core/core.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/core.php b/core/core.php index 69d59eb6..fa30bd86 100644 --- a/core/core.php +++ b/core/core.php @@ -1315,11 +1315,13 @@ class common { // Version 10.2.00 if ($this->getData(['core', 'dataVersion']) < 10200) { // Paramètres du compte connecté - $this->setData(['user', $this->getUser('id'), 'connectFail',0]); - $this->setData(['user', $this->getUser('id'), 'connectTimeout',0]); - $this->setData(['user', $this->getUser('id'), 'accessTimer',0]); - $this->setData(['user', $this->getUser('id'), 'accessUrl','']); - $this->setData(['user', $this->getUser('id'), 'accessCsrf',$_SESSION['csrf']]); + if ($this->getUser('id')) { + $this->setData(['user', $this->getUser('id'), 'connectFail',0]); + $this->setData(['user', $this->getUser('id'), 'connectTimeout',0]); + $this->setData(['user', $this->getUser('id'), 'accessTimer',0]); + $this->setData(['user', $this->getUser('id'), 'accessUrl','']); + $this->setData(['user', $this->getUser('id'), 'accessCsrf',$_SESSION['csrf']]); + } // Paramètres de sécurité $this->setData(['config', 'connect', 'attempt',999]); $this->setData(['config', 'connect', 'timeout',0]);