From: Leandro Lucarella Date: Fri, 30 Jan 2004 18:21:43 +0000 (+0000) Subject: Se corrige un bug. X-Git-Tag: svn_import~65 X-Git-Url: https://git.llucax.com/mecon/intranet.git/commitdiff_plain/ef3866a0d290cbdbf7a81dc2cfb06390f6fee1d9?ds=inline Se corrige un bug. --- 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(); ?>