X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/e56d330ff51094e37f7d9f86f538b1c3865412ca..4f3e113d600d55d0788f448ad478f1c9714f48ae:/lib/MECON/PDF/Tabla.php?ds=inline diff --git a/lib/MECON/PDF/Tabla.php b/lib/MECON/PDF/Tabla.php index 226ef36..d0dc4b2 100644 --- a/lib/MECON/PDF/Tabla.php +++ b/lib/MECON/PDF/Tabla.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); + } } } }