mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-04 21:44:57 +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)
|
function action_delete_confirmed($ids, $delete_files)
|
||||||
{
|
{
|
||||||
global $db, $user, $cache;
|
global $db, $user, $cache, $config;
|
||||||
|
|
||||||
$default = $config['default_style'];
|
$default = $config['default_style'];
|
||||||
$deleted = array();
|
$deleted = array();
|
||||||
@ -556,6 +556,7 @@ class acp_styles
|
|||||||
$users = $this->get_users();
|
$users = $this->get_users();
|
||||||
|
|
||||||
// Add users counter to rows
|
// Add users counter to rows
|
||||||
|
$style['_users'] = array();
|
||||||
foreach ($styles as &$style)
|
foreach ($styles as &$style)
|
||||||
{
|
{
|
||||||
$style['_users'] = isset($users[$style['style_id']]) ? $users[$style['style_id']] : 0;
|
$style['_users'] = isset($users[$style['style_id']]) ? $users[$style['style_id']] : 0;
|
||||||
@ -1288,7 +1289,7 @@ class acp_styles
|
|||||||
function default_bitfield()
|
function default_bitfield()
|
||||||
{
|
{
|
||||||
static $value;
|
static $value;
|
||||||
if(isset($value))
|
if (isset($value))
|
||||||
{
|
{
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user