mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-29 10:39:19 +02:00
[feature/merging-style-components] Fix notices in acp_styles
PHPBB3-10632
This commit is contained in:
parent
e13e4d9206
commit
bc46cfd6e5
@ -228,7 +228,7 @@ class acp_styles
|
||||
*/
|
||||
function action_delete_confirmed($ids, $delete_files)
|
||||
{
|
||||
global $db, $user, $cache;
|
||||
global $db, $user, $cache, $config;
|
||||
|
||||
$default = $config['default_style'];
|
||||
$deleted = array();
|
||||
@ -556,6 +556,7 @@ class acp_styles
|
||||
$users = $this->get_users();
|
||||
|
||||
// Add users counter to rows
|
||||
$style['_users'] = array();
|
||||
foreach ($styles as &$style)
|
||||
{
|
||||
$style['_users'] = isset($users[$style['style_id']]) ? $users[$style['style_id']] : 0;
|
||||
@ -1288,7 +1289,7 @@ class acp_styles
|
||||
function default_bitfield()
|
||||
{
|
||||
static $value;
|
||||
if(isset($value))
|
||||
if (isset($value))
|
||||
{
|
||||
return $value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user