From 953be5bcb274c1158253bef14d552fbfe37602d4 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Fri, 17 Feb 2012 19:29:26 +0000 Subject: [PATCH] 5.9.148 --- CHANGELOG.TXT | 3 +++ README.TXT | 4 ++-- tcpdf.php | 13 +++++++------ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 9270876..ff109ad 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +5.9.148 (2012-02-17) + - Bug item #3488600 "Multiple radiobutton sets get first set value" was fixed. + 5.9.147 (2012-02-14) - A problem with SVG gradients has been fixed. diff --git a/README.TXT b/README.TXT index 7e0dd2c..8852064 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 5.9.147 -Release date: 2012-02-14 +Version: 5.9.148 +Release date: 2012-02-17 Author: Nicola Asuni Copyright (c) 2002-2012: diff --git a/tcpdf.php b/tcpdf.php index 6279437..9860684 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.147 + * @version 5.9.148 */ // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. @@ -149,7 +149,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.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 5.9.147 + * @version 5.9.148 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -160,7 +160,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.147'; + private $tcpdf_version = '5.9.148'; // Protected properties @@ -9091,6 +9091,7 @@ class TCPDF { $annots .= ' /T '.$this->_datastring($pl['txt'], $radio_button_obj_id); $annots .= ' /FT /Btn'; $annots .= ' /Kids ['; + $defval = ''; foreach ($this->radiobutton_groups[$n][$pl['txt']] as $key => $data) { if (isset($data['kid'])) { $annots .= ' '.$data['kid'].' 0 R'; @@ -9100,7 +9101,7 @@ class TCPDF { } } $annots .= ' ]'; - if (isset($defval)) { + if (!empty($defval)) { $annots .= ' /V /'.$defval; } $annots .= ' >>';