From 96139d31fd7463d5cfab1350038246dfdda78fc4 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 21 Nov 2020 10:07:48 +0100 Subject: [PATCH 1/4] =?UTF-8?q?bug=20setData=20donn=C3=A9es=20false=20non?= =?UTF-8?q?=20nulle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 3 ++- core/core.php | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 55f55361..cd2c47ff 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,8 @@ ## Version 10.3.08 Correction : - - Page de backup double commentaire + - Notification de mise à jour d'update bloqué + - Page de backup double commentaire entraînant un bug d'affichage ## Version 10.3.07 - Petites corrections diff --git a/core/core.php b/core/core.php index dfc5337e..091db61b 100755 --- a/core/core.php +++ b/core/core.php @@ -949,11 +949,15 @@ class common { * @param array $keys Clé(s) des données */ public function setData($keys = []) { - // Pas d'enregistrement lorsqu'une notice est présente ou tableau transmis vide if (!empty(self::$inputNotices) - OR empty($keys) - OR in_array(NULL, $keys) ) { + OR empty($keys)) { + return false; + } + + // Empêcher la sauvegarde d'une donnée nulle. + if (gettype($keys[count($keys) -1]) === NULL) { + var_dump($keys); return false; } From 226b4e03df628fbd9219e0c363c95ad723206259 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 21 Nov 2020 12:35:26 +0100 Subject: [PATCH 2/4] bug 10307 effacer updateAvailable --- core/core.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core.php b/core/core.php index 091db61b..20c68bbb 100755 --- a/core/core.php +++ b/core/core.php @@ -1492,6 +1492,12 @@ class common { } } $this->setData(['core', 'dataVersion', 10306]); + // Version 10.3.08 + if ($this->getData(['core', 'dataVersion']) < 10308) { + // RAZ la mise à jour auto bug 10.3.07 + $this->setData(['core','updateAvailable', false]); + $this->setData(['core', 'dataVersion', 10308]); + } } } } From b0491002e8fb97832fe3f02ad85fd72fee140307 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 21 Nov 2020 12:39:02 +0100 Subject: [PATCH 3/4] update --- core/core.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/core.php b/core/core.php index 20c68bbb..d36f3807 100755 --- a/core/core.php +++ b/core/core.php @@ -1492,12 +1492,12 @@ class common { } } $this->setData(['core', 'dataVersion', 10306]); - // Version 10.3.08 - if ($this->getData(['core', 'dataVersion']) < 10308) { - // RAZ la mise à jour auto bug 10.3.07 - $this->setData(['core','updateAvailable', false]); - $this->setData(['core', 'dataVersion', 10308]); - } + } + // Version 10.3.08 + if ($this->getData(['core', 'dataVersion']) < 10308) { + // RAZ la mise à jour auto bug 10.3.07 + $this->setData(['core','updateAvailable', false]); + $this->setData(['core', 'dataVersion', 10308]); } } } From fb0a9d74fca60b402ce59a5e192947c0648aa92e Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 21 Nov 2020 12:50:15 +0100 Subject: [PATCH 4/4] changes --- CHANGES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index cd2c47ff..512e6c25 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,9 +1,9 @@ # Changelog ## Version 10.3.08 -Correction : +Corrections : - Notification de mise à jour d'update bloqué - - Page de backup double commentaire entraînant un bug d'affichage + - Backup : double commentaire entraînant un bug d'affichage ## Version 10.3.07 - Petites corrections