]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/Marco/MenuPrincipal.php
Generalizacion de Arbol
[mecon/meconlib.git] / lib / MECON / Marco / MenuPrincipal.php
index 71f8c543ad75a01c3ab99ccc1808a7c7b1197c1d..360424fff9f5b90877d1965860a28f8d3cb2c2f0 100644 (file)
@@ -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']);