X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=classes%2Fdocument.php-class;h=5a60615b7189eac910f8f245ce4bad86954eaf10;hp=e98d292a134c8f256c5c60f6c6f0ea3372b5fb5e;hb=9d19c120cf7e3e112a5bd72103a412332d486bc2;hpb=da8e7efd5f6301bb07ac205f8dae87b6a25dcf43 diff --git a/classes/document.php-class b/classes/document.php-class index e98d292..5a60615 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', (strlen($value) ? $value : $target)); + $link = $this->createElement('a', $value); $link->setAttribute('href', $target); // XXX: take care of & etc. in links return $link; }