X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/f1e8dd28b05b78b0992493d8508bddaab2bd13d6..46e1d55b1437c3eb73a9d877d9faae2979263639:/lib/MECON/Marco/MenuPrincipal.php diff --git a/lib/MECON/Marco/MenuPrincipal.php b/lib/MECON/Marco/MenuPrincipal.php index 71f8c54..360424f 100644 --- a/lib/MECON/Marco/MenuPrincipal.php +++ b/lib/MECON/Marco/MenuPrincipal.php @@ -108,8 +108,28 @@ class MenuPrincipal extends MenuHorizontal { $row = array ($this->_seccionSeleccionada->_hijos->toHtml()); } else { - $row = array ($body['body']); + if (is_array($body['body'])) { + $tmp = ''; + foreach ($body['body'] as $bod) { + if (is_object($bod)) { + if (method_exists($bod,'toHtml')) { + $tmp.=$bod->toHtml(); + } + else { + trigger_error('El metodo no existe! - '.get_class($bod).'::toHtml()', E_USER_WARNING); + } + } + else { + $tmp.=$bod; + } + } + $row = array ($tmp); + } + else { + $row = array ($body['body']); + } } + $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'"'); $row = array ($body['pie']);