Skip to content

Commit

Permalink
Merge pull request #25648 from Max13/18.0
Browse files Browse the repository at this point in the history
FIX TakePOS receipt preview in admin
  • Loading branch information
eldy authored Aug 19, 2023
2 parents 1266342 + e2f587d commit b426478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/takepos/receipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<br>
<p class="left">
<?php
$constFreeText = 'TAKEPOS_HEADER'.$_SESSION['takeposterminal'];
$constFreeText = 'TAKEPOS_HEADER'.($_SESSION['takeposterminal'] ?? '0');
if (!empty($conf->global->TAKEPOS_HEADER) || getDolGlobalString($constFreeText)) {
$newfreetext = '';
$substitutionarray = getCommonSubstitutionArray($langs);
Expand Down Expand Up @@ -352,7 +352,7 @@
<br>
<br>
<?php
$constFreeText = 'TAKEPOS_FOOTER'.$_SESSION['takeposterminal'];
$constFreeText = 'TAKEPOS_FOOTER'.($_SESSION['takeposterminal'] ?? '0');
if (!empty($conf->global->TAKEPOS_FOOTER) || !empty($conf->global->{$constFreeText})) {
$newfreetext = '';
$substitutionarray = getCommonSubstitutionArray($langs);
Expand Down

0 comments on commit b426478

Please sign in to comment.