mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-31 16:37:27 -08:00
add null safe operator to acceptance reminder
This commit is contained in:
parent
5014a95d9a
commit
2e97b56deb
|
@ -72,7 +72,7 @@ class SendAcceptanceReminder extends Command
|
||||||
$locale = $acceptance->assignedTo?->locale;
|
$locale = $acceptance->assignedTo?->locale;
|
||||||
$email = $acceptance->assignedTo?->email;
|
$email = $acceptance->assignedTo?->email;
|
||||||
if(!$email){
|
if(!$email){
|
||||||
$this->info($acceptance->assignedTo->present()->fullName().' has no email address.');
|
$this->info($acceptance->assignedTo?->present()->fullName().' has no email address.');
|
||||||
}
|
}
|
||||||
$item_count = $unacceptedAssetGroup->count();
|
$item_count = $unacceptedAssetGroup->count();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue