--- nfo/php/libs/org.netfrag.glib/Site/WebAppMVC.php 2003/03/11 01:22:27 1.4 +++ nfo/php/libs/org.netfrag.glib/Site/WebAppMVC.php 2003/04/04 21:18:37 1.5 @@ -15,9 +15,12 @@ * Cvs-Log: * *
- * $Id: WebAppMVC.php,v 1.4 2003/03/11 01:22:27 joko Exp $
+ * $Id: WebAppMVC.php,v 1.5 2003/04/04 21:18:37 joko Exp $
  *
  * $Log: WebAppMVC.php,v $
+ * Revision 1.5  2003/04/04 21:18:37  joko
+ * modified exception handling
+ *
  * Revision 1.4  2003/03/11 01:22:27  joko
  * + fixed metadata for phpDocumentor
  *
@@ -91,17 +94,15 @@
       //print "MVC - performed result: " . Dumper($this->_performed_result);
       //exit;
 
-    if (!sizeof($this->_performed_result)) {
-      user_error("MVC failed - performed result was empty.");
+    if ($this->check_performed_result()) {
+      // encapsulation here - no passthrough!!!
+      $result = array(
+        'view' => $this->_performed_result[view],
+        'options' => $this->_performed_result[options],
+      );
+      return $result;
     }
-    
-    // encapsulation here - no passthrough!!!
-    $result = array(
-      'view' => $this->_performed_result[view],
-      'options' => $this->_performed_result[options],
-    );
-    
-    return $result;
+
   }