summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lesieur2009-05-01 22:12:33 (GMT)
committerDavid Lesieur2009-05-01 22:12:33 (GMT)
commiteae5541cdffb121aa05d57e5431c5b8471070f4b (patch)
tree15ac77a52c1d541e1bfc3df53b3114c9acb73bdc
parentb40d0b6aa36276fe88b7ced9c220085208db3124 (diff)
Fixed warning.
-rwxr-xr-xdate_facets.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/date_facets.module b/date_facets.module
index 5c989cb..4709462 100755
--- a/date_facets.module
+++ b/date_facets.module
@@ -219,17 +219,17 @@ class date_facet_category extends cck_facet_category {
function get_label($html = FALSE) {
if (isset($this->_value['day'])) {
// Format date with YYYY-MM-DD.
- $timestamp = gmmktime(0, 0, 0, $this->_value['month'], $this->_value['day'], $this->_value['year']);
+ $timestamp = gmmktime(0, 0, 0, (int)$this->_value['month'], (int)$this->_value['day'], (int)$this->_value['year']);
$format = variable_get('date_facets_format_ymd', 'm/d/Y');
}
elseif (isset($this->_value['month'])) {
// Format date with YYYY-MM.
- $timestamp = gmmktime(0, 0, 0, $this->_value['month'], 1, $this->_value['year']);
+ $timestamp = gmmktime(0, 0, 0, (int)$this->_value['month'], 1, (int)$this->_value['year']);
$format = variable_get('date_facets_format_ym', 'm/Y');
}
elseif (isset($this->_value['year'])) {
// Format date with YYYY.
- $timestamp = gmmktime(0, 0, 0, 1, 1, $this->_value['year']);
+ $timestamp = gmmktime(0, 0, 0, 1, 1, (int)$this->_value['year']);
$format = variable_get('date_facets_format_y', 'Y');
}
if ($timestamp) {