Merge pull request #48 from albertocubeddu/master

Check if the string is not empty
This commit is contained in:
Nicola Asuni 2017-04-26 09:12:32 +01:00 committed by GitHub
commit 61d7805740

View File

@ -8358,7 +8358,7 @@ class TCPDF {
break;
}
case 'link': {
if (is_string($pl['txt'])) {
if (is_string($pl['txt']) && !empty($pl['txt'])) {
if ($pl['txt'][0] == '#') {
// internal destination
$annots .= ' /Dest /'.TCPDF_STATIC::encodeNameObject(substr($pl['txt'], 1));