diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 10:40:19 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 10:40:19 +0000 |
commit | c19a2f51454df71e0fee89ece7765ba35bdc9244 (patch) | |
tree | 32ffa07b486802e911c95d93d68bf132dbb010e8 /views/default/input/button.php | |
parent | a89df62c0e28f178a9f83c15317b5dd951e2fb65 (diff) | |
download | elgg-c19a2f51454df71e0fee89ece7765ba35bdc9244.tar.gz elgg-c19a2f51454df71e0fee89ece7765ba35bdc9244.tar.bz2 |
Some safety fixes for the new form views
git-svn-id: https://code.elgg.org/elgg/trunk@1881 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/button.php')
-rw-r--r-- | views/default/input/button.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/input/button.php b/views/default/input/button.php index 8fa240a3b..9a72f38b0 100644 --- a/views/default/input/button.php +++ b/views/default/input/button.php @@ -24,7 +24,7 @@ $class = $vars['class']; if (!$class) $class = "submit_button"; - $type = strtolower($vars['type']); + if (isset($vars['type'])) { $type = strtolower($vars['type']); } else { $type = 'submit'; } switch ($type) { case 'button' : $type='button'; break; |