Skip to content

Commit 38cef54

Browse files
committed
Fix for Bug #81
Fixes bug #81, thanks to @Andy-xy for sharing the fix
1 parent 5002645 commit 38cef54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tpl/Reservation/pdf.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $('.btnPDF').click(function (e) {
117117
{/if}
118118
],
119119
{/if}
120-
{if count($RepeatWeekdays) gt 0}
120+
{if (is_array($RepeatWeekdays) && count($RepeatWeekdays) gt 0)}
121121
[{ content: daysText, styles: { fontStyle: 'bold'}},
122122
{ 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}'},
123123
],

0 commit comments

Comments
 (0)