param null version blog

This commit is contained in:
Fred Tempez 2022-10-05 09:28:30 +02:00
parent 81c4a5cfb3
commit 60358ef4be
1 changed files with 2 additions and 1 deletions

View File

@ -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']);
}