aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/button.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-17 12:45:45 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-17 12:45:45 +0000
commit8c9c23b0606a3f4655da71a580a58ea589834efc (patch)
tree00c90b5cda65954c7904c8c3ff3122808d35b4bc /views/default/input/button.php
parent7e1b63792bc51cf6d313199512564a1750562088 (diff)
downloadelgg-8c9c23b0606a3f4655da71a580a58ea589834efc.tar.gz
elgg-8c9c23b0606a3f4655da71a580a58ea589834efc.tar.bz2
fixed notices caused by some input views
git-svn-id: http://code.elgg.org/elgg/trunk@3766 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/button.php')
-rw-r--r--views/default/input/button.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/views/default/input/button.php b/views/default/input/button.php
index 0a65feb82..0ad19a432 100644
--- a/views/default/input/button.php
+++ b/views/default/input/button.php
@@ -1,8 +1,9 @@
<?php
/**
* Create a input button
- * Use this view for forms rather than creating a submit/reset button tag in the wild as it provides
- * extra security which help prevent CSRF attacks.
+ * Use this view or submit view for forms rather than creating a
+ * submit/reset button tag in the wild as it provides extra security
+ * which help prevent CSRF attacks.
*
* @package Elgg
* @subpackage Core
@@ -21,11 +22,11 @@ global $CONFIG;
if (isset($vars['class'])) {
$class = $vars['class'];
-}
-if (!$class) {
+} else {
$class = "submit_button";
}
+// defaults to submit button
if (isset($vars['type'])) {
$type = strtolower($vars['type']);
} else {