mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added isset on users
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
7461c3e0ca
commit
722d5a58e7
|
@ -2,7 +2,7 @@
|
|||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
@if (count($users) === 1)
|
||||
@if ((isset($users) && count($users) === 1))
|
||||
<title>{{ trans('general.assigned_to', ['name' => $users[0]->present()->fullName()]) }} - {{ date('Y-m-d H:i', time()) }}</title>
|
||||
@else
|
||||
<title>{{ trans('admin/users/general.print_assigned') }} - {{ date('Y-m-d H:i', time()) }}</title>
|
||||
|
|
Loading…
Reference in a new issue