reverted last change

This commit is contained in:
Roland Gruber 2014-03-06 20:13:11 +00:00
parent 5c58d2c140
commit 7cc868fb3b
1 changed files with 1 additions and 4 deletions

View File

@ -2683,10 +2683,7 @@ class htmlLink extends htmlElement {
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
$image = '';
if ($this->image != null) {
$image = '<img class="align-middle" src="' . $this->image . '" alt="' . $this->text . '">';
if (!empty($this->text)) {
$image .= '&nbsp;';
}
$image = '<img class="align-middle" src="' . $this->image . '" alt="' . $this->text . '">&nbsp;';
}
$title = '';
if ($this->title != null) {