From c7c8e26f67041b45d3d2b655064c8d8c26e3d7c0 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Wed, 24 Apr 2013 17:30:18 +0100 Subject: [PATCH] 6.0.012 (2013-04-24) - An error condition in addHtmlLink() method was fixed (bug #799). --- CHANGELOG.TXT | 3 +++ README.TXT | 4 ++-- composer.json | 2 +- include/tcpdf_static.php | 2 +- tcpdf.php | 8 ++++---- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 5b59302..a1d0595 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +6.0.012 (2013-04-24) + - An error condition in addHtmlLink() method was fixed (bug #799). + 6.0.011 (2013-04-22) - Minor documentation changes. diff --git a/README.TXT b/README.TXT index 4a22021..5f0f1e7 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.0.011 -Release date: 2013-04-22 +Version: 6.0.012 +Release date: 2013-04-24 Author: Nicola Asuni Copyright (c) 2002-2013: diff --git a/composer.json b/composer.json index 93de149..ad61b7b 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "6.0.011", + "version": "6.0.012", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents.", diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index ef1fae1..a1dc2e4 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -55,7 +55,7 @@ class TCPDF_STATIC { * Current TCPDF version. * @private static */ - private static $tcpdf_version = '6.0.011'; + private static $tcpdf_version = '6.0.012'; /** * String alias for total number of pages. diff --git a/tcpdf.php b/tcpdf.php index ffe4793..bf725da 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,7 +1,7 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 6.0.011 + * @version 6.0.012 */ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) { @@ -168,7 +168,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 6.0.011 + * @version 6.0.012 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -10390,7 +10390,7 @@ class TCPDF { * @public */ public function addHtmlLink($url, $name, $fill=false, $firstline=false, $color='', $style=-1, $firstblock=false) { - if (!TCPDF_STATIC::empty_string($url) AND ($url[0] == '#') AND is_numeric($url[1])) { + if (isset($url[1]) AND ($url[0] == '#') AND is_numeric($url[1])) { // convert url to internal link $lnkdata = explode(',', $url); if (isset($lnkdata[0])) {