mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/merging-style-components] Fix notices in acp_styles
PHPBB3-10632
This commit is contained in:
parent
e13e4d9206
commit
bc46cfd6e5
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue