Skip to content

Commit

Permalink
fix(Widgets/UsersList): Ensure the $photoExtensions variable is passe…
Browse files Browse the repository at this point in the history
…d to the user callback so it is within scope
  • Loading branch information
Patrick Mulligan committed May 13, 2024
1 parent 6824300 commit bd387e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Widgets/UserList/UserList.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function run()
->orderBy($a . '.' . (string)$this->params->get('order', 'name'), (string)$this->params->get('order_dir', 'asc'))
->get();

$users->each(function($user, $key) use ($segments)
$users->each(function($user, $key) use ($segments, $photoExtensions)
{
//event($e = new UserBeforeDisplay($user));

Expand Down

0 comments on commit bd387e2

Please sign in to comment.