From: Robert Kaiser Date: Sun, 2 Sep 2018 18:26:56 +0000 (+0200) Subject: oops, revert, that's not what we want! X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=commitdiff_plain;h=9d19c120cf7e3e112a5bd72103a412332d486bc2;hp=da8e7efd5f6301bb07ac205f8dae87b6a25dcf43 oops, revert, that's not what we want! --- 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; }