diff --git a/lam/lib/html.inc b/lam/lib/html.inc
index be1c7166..a115e4ba 100644
--- a/lam/lib/html.inc
+++ b/lam/lib/html.inc
@@ -535,23 +535,18 @@ class htmlButton extends htmlElement {
logNewMessage(LOG_ERR, 'Meta HTML: Requested button in restricted mode.');
return array();
}
- $value = '';
$style = '';
$class = '';
$title = '';
$name = ' name="' . $this->name . '"';
// image button
if ($this->isImageButton) {
- $value = ' value=" "';
$class = ' class="smallImageButton"';
$style = ' style="background-image: url(../../graphics/' . $this->value . ');"';
}
// text button
else {
$class = ' class="smallPadding"';
- if ($this->value != null) {
- $value = ' value="' . $this->value . '"';
- }
}
if ($this->title != null) {
$title = ' title="' . $this->title . '"';
@@ -560,8 +555,11 @@ class htmlButton extends htmlElement {
if (!$this->isEnabled) {
$disabled = ' disabled';
}
- echo '';
- if (!$this->isImageButton) {
+ if ($this->isImageButton) {
+ echo '';
+ }
+ else {
+ echo '';
// text buttons get JQuery style
echo '