Skip to content

Commit

Permalink
Merge pull request #1466 from Evarisk/fix_public_control
Browse files Browse the repository at this point in the history
#1465 [PublicControl] fix: missing check $object->next_control_date
  • Loading branch information
nicolas-eoxia authored Aug 17, 2023
2 parents e7a2783 + c6748f5 commit 130487d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tpl/digiquali_public_control.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
} ?>
</div>
<div class="table-cell table-end">
<?php if ($object->next_control_date - dol_now() < 0) {
<?php if (!empty($object->next_control_date) && $object->next_control_date - dol_now() < 0) {
$verdictObjectColor = 'red';
} elseif ($object->verdict > 1) {
$verdictObjectColor = 'red';
Expand Down

0 comments on commit 130487d

Please sign in to comment.