Skip to content

Commit

Permalink
SAK-40219 Error in logs that calendarcounter has null value
Browse files Browse the repository at this point in the history
  • Loading branch information
austin48 authored and Miguel Pellicer committed Oct 30, 2018
1 parent 4baa245 commit e990774
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@
document.calendars = new Array();
document.calendarcounter = 0;

#if($calendarcounter > 0)
#if($calendarcounter && $calendarcounter > 0)
document.calendars = new Array();
document.calendarcounter = $calendarcounter;
#set($n = $calendarcounter - 1)
Expand All @@ -1577,7 +1577,7 @@ document.calendarcounter = 0;
#end
#end
</script>
#if($calendarcounter > 0)
#if($calendarcounter && $calendarcounter > 0)
#javascript("/library/calendar/sakai-calendar.js")
#javascript("/library/calendar/js/calendar2.js")
#end

0 comments on commit e990774

Please sign in to comment.