From 90d0fc212764c06a809f2040944c030513607cf9 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 1 Apr 2021 16:25:00 +0200 Subject: [PATCH] update comparaison --- module/news/news.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/news/news.php b/module/news/news.php index 9fed8b52..521dffa8 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -71,7 +71,7 @@ class news extends common { $this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']); } // Version 3.0 - if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), self::VERSION, '<') ) { + if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '3.0', '<') ) { $this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]); $this->setData(['module', $this->getUrl(0), 'config', 'itemsperCol', 6]); $this->setData(['module', $this->getUrl(0), 'config', 'version','3.0']);