summaryrefslogtreecommitdiffstats
path: root/system/libraries/Calendar.php
diff options
context:
space:
mode:
authorMarcos SF Filho <sffmarcos142009z@gmail.com>2014-01-09 12:20:55 +0100
committerMarcos SF Filho <sffmarcos142009z@gmail.com>2014-01-09 12:20:55 +0100
commit2e914b7dc6acaf2938fac4c332ff682a033b93d7 (patch)
tree133784bbea11ba56e75fafa7123d2ff8fc756e55 /system/libraries/Calendar.php
parent0cd7c92ee59b4b03588e45229944d4b83eea3d8e (diff)
Updates for the Calendar Pull Request
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']);
}