diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-16 19:02:23 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-16 19:02:23 +0200 |
commit | f51b1fbafcf280d69633a37f4fc87c0ffcef78ad (patch) | |
tree | 1630616ab3084fb38cac80c4be09cbf7baa178dd /system/libraries/Calendar.php | |
parent | 95d78cf4f78c0fb685a789c280d106ab242318ef (diff) |
Fix CI_Calendar::generate() not accepting NULLs (introduced in d261b1e89c3d4d5191036d5a5660ef6764e593a0)
Diffstat (limited to 'system/libraries/Calendar.php')
-rw-r--r-- | system/libraries/Calendar.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Calendar.php b/system/libraries/Calendar.php index 969a7610a..a49f171b9 100644 --- a/system/libraries/Calendar.php +++ b/system/libraries/Calendar.php @@ -155,7 +155,7 @@ class CI_Calendar { public function generate($year = '', $month = '', $data = array()) { // Set and validate the supplied month/year - if ($year === '') + if (empty($year)) { $year = date('Y', $this->local_time); } @@ -168,7 +168,7 @@ class CI_Calendar { $year = '20'.$year; } - if ($month === '') + if (empty($month)) { $month = date('m', $this->local_time); } |