Skip to content

Commit

Permalink
Fix null label on user id 0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Dec 1, 2024
1 parent 5ce01b3 commit 1fc54f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Templates/EventLog/View.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $object_user_id = ($object instanceof Event ? $object->getUserId() : null);

try
{
$object_user = ($object_user_id ? $object->getUser() : null);
$object_user = is_null($object_user_id) ? null : $object->getUser();
}
catch (\BNETDocs\Exceptions\UserNotFoundException)
{
Expand Down

0 comments on commit 1fc54f9

Please sign in to comment.