aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/calendar.php')
-rw-r--r--views/default/input/calendar.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/calendar.php b/views/default/input/calendar.php
index 12cbf95ec..09c29753a 100644
--- a/views/default/input/calendar.php
+++ b/views/default/input/calendar.php
@@ -26,6 +26,10 @@ END;
$strippedname = sanitise_string($vars['internalname']);
$js = "cal" . $strippedname;
+if (!isset($vars['value']) || $vars['value'] === FALSE) {
+ $vars['value'] = elgg_get_sticky_value($vars['internalname']);
+}
+
if ($vars['value'] > 86400) {
$val = date("F j, Y",$vars['value']);
} else {