From ef3866a0d290cbdbf7a81dc2cfb06390f6fee1d9 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Fri, 30 Jan 2004 18:21:43 +0000 Subject: [PATCH] Se corrige un bug. --- sistema/www/servicios.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php index 52b94f5..0384dcf 100644 --- a/sistema/www/servicios.php +++ b/sistema/www/servicios.php @@ -75,11 +75,15 @@ foreach($serv->getHijos() as $s) } } } -$marco->addStyleSheet($sh->getCSS()); -$tabla =& new HTML_Table(array('width' => 760, - 'cellspacing' => 10)); -$tabla->addRow(array($col_impar, $col_par), array('valign'=>'top')); -$marco->addBodyContent($tabla); + +if (is_a(@$sh, 'html_servicio')) { + $tabla =& new HTML_Table(array('width' => 760, 'cellspacing' => 10)); + $tabla->addRow(array($col_impar, $col_par), array('valign'=>'top')); + $marco->addStyleSheet($sh->getCSS()); + $marco->addBodyContent($tabla); +} else { + $marco->addBodyContent('
No hay servicios cargados en esta sección.
'); +} $marco->display(); ?> -- 2.43.0