diff --git a/outputhtml.php b/outputhtml.php
index 02842fc..55f5984 100644
--- a/outputhtml.php
+++ b/outputhtml.php
@@ -36,6 +36,16 @@ class outputhtml extends output
require_once ("views/$viewClass.php");
$obj = new $viewClass;
$resView = $obj->$viewMethod ($data, $variable);
+ if (is_array ($resView))
+ {
+ if (isset ($resView["title"]))
+ $title = $resView["title"];
+ if (! isset ($resView["content"]))
+ throw new Exception (
+ _("No data provided from view $viewClass::$viewMethod"),
+ 500);
+ $resView = $resView["content"];
+ }
}
if ($layout !== FALSE)