[ticket/289] Add a few more minor scrutinizer fixes
B3P-289
This commit is contained in:
@@ -276,7 +276,7 @@ class portal_module
|
|||||||
|
|
||||||
if(isset($module_name))
|
if(isset($module_name))
|
||||||
{
|
{
|
||||||
if ($module_data['module_classname'] !== '\board3\portal\modules\custom')
|
if (isset($module_data) && $module_data['module_classname'] !== '\board3\portal\modules\custom')
|
||||||
{
|
{
|
||||||
add_log('admin', 'LOG_PORTAL_CONFIG', $module_name);
|
add_log('admin', 'LOG_PORTAL_CONFIG', $module_name);
|
||||||
}
|
}
|
||||||
@@ -783,7 +783,7 @@ class portal_module
|
|||||||
|
|
||||||
$this->cache->destroy('config');
|
$this->cache->destroy('config');
|
||||||
$this->cache->destroy('portal_config');
|
$this->cache->destroy('portal_config');
|
||||||
$portal_config = obtain_portal_config(); // we need to prevent duplicate entry errors
|
obtain_portal_config(); // we need to prevent duplicate entry errors
|
||||||
$this->c_class->install($module_id);
|
$this->c_class->install($module_id);
|
||||||
$this->cache->purge();
|
$this->cache->purge();
|
||||||
|
|
||||||
|
|||||||
@@ -62,10 +62,10 @@ class announcements extends module_base
|
|||||||
/** @var \phpbb\request\request */
|
/** @var \phpbb\request\request */
|
||||||
protected $request;
|
protected $request;
|
||||||
|
|
||||||
/** @var php file extension */
|
/** @var string php file extension */
|
||||||
protected $php_ext;
|
protected $php_ext;
|
||||||
|
|
||||||
/** @var phpbb root path */
|
/** @var string phpbb root path */
|
||||||
protected $phpbb_root_path;
|
protected $phpbb_root_path;
|
||||||
|
|
||||||
/** @var \phpbb\user */
|
/** @var \phpbb\user */
|
||||||
|
|||||||
Reference in New Issue
Block a user