split check

This commit is contained in:
Jean-Christian Denis 2023-03-17 21:18:56 +01:00
parent e6f3204e06
commit d84442b2f5
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -22,9 +22,10 @@ class Install extends dcNsProcess
{
public static function init(): bool
{
self::$init = defined('DC_CONTEXT_ADMIN')
&& version_compare(phpversion(), My::PHP_MIN, '>=')
&& dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version'));
if (defined('DC_CONTEXT_ADMIN')) {
self::$init = version_compare(phpversion(), My::PHP_MIN, '>=')
&& dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version'));
}
return self::$init;
}