Fix error in PHP 8.0

This commit is contained in:
Kijin Sung 2021-01-12 10:38:05 +09:00
parent a51ea6fbe4
commit 7e0e6bc25f

View file

@ -77,7 +77,7 @@ class ncenterliteView extends ncenterlite
Context::set('user_config', $user_config);
Context::set('module_config', NcenterliteModel::getConfig());
Context::set('sms_available', Rhymix\Framework\SMS::getDefaultDriver()->getName() !== 'Dummy');
Context::set('push_available', count(Rhymix\Framework\Config::get('push.types')) > 0);
Context::set('push_available', count(Rhymix\Framework\Config::get('push.types') ?? []) > 0);
$this->setTemplateFile('userconfig');
}