mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/16895] Add missing return and remove not needed declarations
PHPBB3-16895
This commit is contained in:
@@ -29,7 +29,7 @@ class remove_orphaned_roles extends \phpbb\db\migration\migration
|
|||||||
|
|
||||||
public function acl_remove_orphaned_roles()
|
public function acl_remove_orphaned_roles()
|
||||||
{
|
{
|
||||||
$auth_role_ids = $role_ids = $auth_settings = [];
|
$role_ids = [];
|
||||||
|
|
||||||
$sql = 'SELECT auth_role_id
|
$sql = 'SELECT auth_role_id
|
||||||
FROM ' . ACL_GROUPS_TABLE . '
|
FROM ' . ACL_GROUPS_TABLE . '
|
||||||
@@ -68,5 +68,7 @@ class remove_orphaned_roles extends \phpbb\db\migration\migration
|
|||||||
|
|
||||||
$auth = new \phpbb\auth\auth();
|
$auth = new \phpbb\auth\auth();
|
||||||
$auth->acl_clear_prefetch();
|
$auth->acl_clear_prefetch();
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user