From 60358ef4be57d315922e7e4ab5eab588578e063c Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 5 Oct 2022 09:28:30 +0200 Subject: [PATCH] param null version blog --- module/blog/blog.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index b0ca69d3..155053d1 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -109,7 +109,8 @@ class blog extends common { */ private function update() { // Version 5.0 - if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '5.0', '<') ) { + if (is_null($this->getData(['module', $this->getUrl(0), 'config', 'versionData'])) || + version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '5.0', '<') ) { $this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]); $this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.0']); }