summaryrefslogtreecommitdiff
path: root/app/frontend/controls/CalendarGrid.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/controls/CalendarGrid.php')
-rw-r--r--app/frontend/controls/CalendarGrid.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/frontend/controls/CalendarGrid.php b/app/frontend/controls/CalendarGrid.php
index b168379..ddd17f2 100644
--- a/app/frontend/controls/CalendarGrid.php
+++ b/app/frontend/controls/CalendarGrid.php
@@ -7,7 +7,7 @@ Prado::using('Application.user.DbUser');
class CalendarGrid extends FacadeTemplateControl {
public function setMonth($month) {
- $this->setControlState('Month', $month);
+ $this->setControlState('Month', TPropertyValue::ensureInteger($month));
}
public function getMonth() {
@@ -15,7 +15,7 @@ class CalendarGrid extends FacadeTemplateControl {
}
public function setYear($year) {
- $this->setControlState('Year', $year);
+ $this->setControlState('Year', TPropertyValue::ensureInteger($year));
}
public function getYear() {