summaryrefslogtreecommitdiffstats
path: root/system/libraries/Calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Calendar.php')
-rw-r--r--system/libraries/Calendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Calendar.php b/system/libraries/Calendar.php
index de77e3d7f..711d23bec 100644
--- a/system/libraries/Calendar.php
+++ b/system/libraries/Calendar.php
@@ -302,7 +302,7 @@ class CI_Calendar {
if ($day <= 0)
{
// Day of previous month
- $prev_month = $this->adjust_date(((int) $month) - 1, $year);
+ $prev_month = $this->adjust_date($month - 1, $year);
$prev_month_days = $this->get_total_days($prev_month['month'], $prev_month['year']);
$out .= str_replace('{day}', $prev_month_days + $day, $this->temp['cal_cell_other']);
}