Skip to content

Commit

Permalink
Add admin order note user check
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin- committed Oct 31, 2023
1 parent e24e803 commit 88f5468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/AdminOrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function detailAction(
$quantity = null;

// get avatar
$user = User::getById($note->getUser());
$user = $note->getUser() ? User::getById($note->getUser()) : null;
$avatar = $user ? sprintf('/admin/user/get-image?id=%d', $user->getId()) : null;

// group events
Expand Down

0 comments on commit 88f5468

Please sign in to comment.