From 9db9708a9f815241183370bc39d4c70359d39593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 5 Oct 2022 06:58:08 +0200 Subject: [PATCH] param null --- module/blog/blog.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index 0ec6a99f..08a51069 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -15,7 +15,7 @@ class blog extends common { - const VERSION = '6.1'; + const VERSION = '6.2'; const REALNAME = 'Blog'; const DELETE = true; const UPDATE = '0.0'; @@ -124,6 +124,10 @@ class blog extends common { * Appelée par les fonctions index et config */ private function update() { + // Eviter valeur null + if (is_null($this->getData(['module', $this->getUrl(0), 'config', 'versionData'])) ){ + return; + } // Initialisation if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '0.0', '<') ) { $this->setData(['module', $this->getUrl(0), 'config', 'feeds', true]);