X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=classes%2Fdocument.php-class;h=e98d292a134c8f256c5c60f6c6f0ea3372b5fb5e;hp=5a60615b7189eac910f8f245ce4bad86954eaf10;hb=da8e7efd5f6301bb07ac205f8dae87b6a25dcf43;hpb=71771b0c769f7a7be15b178accc41c22b7039d5a diff --git a/classes/document.php-class b/classes/document.php-class index 5a60615..e98d292 100755 --- a/classes/document.php-class +++ b/classes/document.php-class @@ -335,7 +335,7 @@ class ExtendedDocument extends DOMDocument { } public function createElementLink($target, $value = '') { - $link = $this->createElement('a', $value); + $link = $this->createElement('a', (strlen($value) ? $value : $target)); $link->setAttribute('href', $target); // XXX: take care of & etc. in links return $link; }