Skip to content

Commit

Permalink
Fix for Bug #81
Browse files Browse the repository at this point in the history
Fixes bug #81, thanks to @Andy-xy for sharing the fix
  • Loading branch information
effgarces committed Apr 18, 2023
1 parent 5002645 commit 38cef54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/Reservation/pdf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $('.btnPDF').click(function (e) {
{/if}
],
{/if}
{if count($RepeatWeekdays) gt 0}
{if (is_array($RepeatWeekdays) && count($RepeatWeekdays) gt 0)}
[{ content: daysText, styles: { fontStyle: 'bold'}},
{ colSpan: 3, content: '{foreach from=$RepeatWeekdays item=day name=weekdaysLoop}{if $smarty.foreach.weekdaysLoop.last}{translate key=$DayNames[$day]}{else}{translate key=$DayNames[$day]},{/if} {/foreach}'},
],
Expand Down

0 comments on commit 38cef54

Please sign in to comment.