From 89168c507b13333bf3a4620446c994eb92a0891a Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 3 Dec 2021 20:14:26 +0100 Subject: [PATCH] [ticket/16895] Add missing return and remove not needed declarations PHPBB3-16895 --- phpBB/phpbb/db/migration/data/v33x/remove_orphaned_roles.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/phpbb/db/migration/data/v33x/remove_orphaned_roles.php b/phpBB/phpbb/db/migration/data/v33x/remove_orphaned_roles.php index 11e1ab0812..4f2bfe90cc 100644 --- a/phpBB/phpbb/db/migration/data/v33x/remove_orphaned_roles.php +++ b/phpBB/phpbb/db/migration/data/v33x/remove_orphaned_roles.php @@ -29,7 +29,7 @@ class remove_orphaned_roles extends \phpbb\db\migration\migration public function acl_remove_orphaned_roles() { - $auth_role_ids = $role_ids = $auth_settings = []; + $role_ids = []; $sql = 'SELECT auth_role_id FROM ' . ACL_GROUPS_TABLE . ' @@ -68,5 +68,7 @@ class remove_orphaned_roles extends \phpbb\db\migration\migration $auth = new \phpbb\auth\auth(); $auth->acl_clear_prefetch(); + + return true; } }