X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/51a1428cd773aa45b8da0bb9b715784c16c93c44..4f3e113d600d55d0788f448ad478f1c9714f48ae:/lib/MECON/PDF/Tabla.php diff --git a/lib/MECON/PDF/Tabla.php b/lib/MECON/PDF/Tabla.php index 38c5a58..d0dc4b2 100644 --- a/lib/MECON/PDF/Tabla.php +++ b/lib/MECON/PDF/Tabla.php @@ -60,8 +60,8 @@ class MECON_PDF_Tabla extends MECON_PDF_Contenido { * @return void * @access public */ - function MECON_PDF_Tabla(&$TABLA) { - $this->_tabla =& $TABLA; + function MECON_PDF_Tabla($TABLA) { + $this->_tabla = $TABLA; $this->_config = include 'MECON/PDF/Tabla/medidas.php'; } @@ -239,15 +239,17 @@ class MECON_PDF_Tabla extends MECON_PDF_Contenido { $this->_marco->orientacion); $alto1 = $alto + $max; - foreach ($txtt[$j] as $t) { - $alto1 -= $estilo['alto_linea']; + if (@$txtt[$j]) { + foreach ($txtt[$j] as $t) { + $alto1 -= $estilo['alto_linea']; - //Ubico el texto segun su alineacion - $init = $this->_obtenerAlineacionTexto($i, $j, $t, $attr2, - $estilo); - - $this->_marco->addText($init, $alto1 + 2, - $t, $estilo, null, $this->_marco->orientacion); + //Ubico el texto segun su alineacion + $init = $this->_obtenerAlineacionTexto($i, $j, $t, $attr2, + $estilo); + + $this->_marco->addText($init, $alto1 + 2, + $t, $estilo, null, $this->_marco->orientacion); + } } } }