Merge pull request #2832 from marc1706/ticket/10404

[ticket/10404] Use anonymous function instead of create_function in acp/auth

* marc1706/ticket/10404:
  [ticket/10404] Fix codesniffer complaint about anonymous function
  [ticket/10404] Use anonymous function instead of create_function in acp/auth
This commit is contained in:
Andreas Fischer 2014-08-08 16:03:24 +02:00
commit 42c26cd781

View file

@ -183,7 +183,10 @@ class auth_admin extends \phpbb\auth\auth
}
// Defining the user-function here to save some memory
$return_acl_fill = create_function('$value', 'return ' . $acl_fill . ';');
$return_acl_fill = function () use ($acl_fill)
{
return $acl_fill;
};
// Actually fill the gaps
if (sizeof($hold_ary))