aboutsummaryrefslogtreecommitdiff
path: root/views/installation/input/password.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-21 07:14:51 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-21 07:14:51 -0400
commit4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2 (patch)
tree0779d4f8a2f1ed074b975076372406042029985c /views/installation/input/password.php
parentbd08504b16ee636eda1b30676799efc22a915613 (diff)
downloadelgg-4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2.tar.gz
elgg-4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2.tar.bz2
cleaned up input views for installation so that no notices are thrown
Diffstat (limited to 'views/installation/input/password.php')
-rw-r--r--views/installation/input/password.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/installation/input/password.php b/views/installation/input/password.php
index 18811109b..2265ab117 100644
--- a/views/installation/input/password.php
+++ b/views/installation/input/password.php
@@ -8,10 +8,10 @@
*
*/
-$class = $vars['class'];
-if (!$class) {
- $class = "input-password";
-}
+$class = "input-password";
+
+$value = htmlentities($vars['value'], ENT_QUOTES, 'UTF-8');
+
?>
-<input type="password" <?php if ($vars['disabled']) echo ' disabled="yes" '; ?> name="<?php echo $vars['name']; ?>" <?php if (isset($vars['id'])) echo "id=\"{$vars['id']}\""; ?> value="<?php echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?>" class="<?php echo $class; ?>" />
+<input type="password" name="<?php echo $vars['name']; ?>" value="<?php echo $value; ?>" class="<?php echo $class; ?>" />