aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/email.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/email.php')
-rw-r--r--views/default/input/email.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/default/input/email.php b/views/default/input/email.php
index 62a4ec993..f8df87dd4 100644
--- a/views/default/input/email.php
+++ b/views/default/input/email.php
@@ -20,6 +20,11 @@ $class = $vars['class'];
if (!$class) {
$class = "input_text";
}
+
+if (!isset($vars['value']) || $vars['value'] === FALSE) {
+ $vars['value'] = elgg_get_sticky_value($vars['internalname']);
+}
+
?>
<input type="text" <?php echo $vars['js']; ?> name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?>value="<?php echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?>" class="<?php echo $class; ?>"/> \ No newline at end of file