From 8c9c23b0606a3f4655da71a580a58ea589834efc Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 17 Dec 2009 12:45:45 +0000 Subject: fixed notices caused by some input views git-svn-id: http://code.elgg.org/elgg/trunk@3766 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/button.php | 9 +++++---- views/default/input/form.php | 2 +- views/default/input/submit.php | 3 +-- views/default/input/text.php | 12 +++++++++--- 4 files changed, 16 insertions(+), 10 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 @@ diff --git a/views/default/input/submit.php b/views/default/input/submit.php index b0c72791f..377a86c8f 100644 --- a/views/default/input/submit.php +++ b/views/default/input/submit.php @@ -19,8 +19,7 @@ $vars['type'] = 'submit'; if (isset($vars['class'])) { $class = $vars['class']; -} -if (!$class) { +} else { $class = "submit_button"; } $vars['class'] = $class; diff --git a/views/default/input/text.php b/views/default/input/text.php index 1814e5801..e4d39e0ba 100644 --- a/views/default/input/text.php +++ b/views/default/input/text.php @@ -18,11 +18,17 @@ */ -$class = $vars['class']; -if (!$class) { +if (isset($vars['class'])) { + $class = $vars['class']; +} else { $class = "input-text"; } +$disabled = false; +if (isset($vars['disabled'])) { + $disabled = $vars['disabled']; +} + ?> - name="" value="" class=""/> \ No newline at end of file + name="" value="" class=""/> \ No newline at end of file -- cgit v1.2.3