Skip to content

Commit

Permalink
Update NotificationTargetContract.php Spaces fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirkk authored Feb 10, 2025
1 parent 5a31a1b commit 3870a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NotificationTargetContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ public function addDataForTemplate($event, $options = [])
$contract["begin_date"],
$contract["duration"]
);
if ($contract["notice"]){
if ($contract["notice"]) {
$tmp['##contract.noticetime##'] = Infocom::getWarrantyExpir(
$contract["begin_date"],
$contract["duration"],
$contract["notice"]
);
} else {
$tmp['##contract.noticetime##'] = "";
}
}
if ($contract['contracttypes_id']) {
$tmp['##contract.type##'] = Dropdown::getDropdownName(
'glpi_contracttypes',
Expand Down

0 comments on commit 3870a3d

Please sign in to comment.