phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/interface/class.interface_browser.php, 1.1.2.11


From: nomail
Subject: [Phpgroupware-cvs] api/interface/class.interface_browser.php, 1.1.2.11
Date: Fri, 9 Jul 2004 16:49:26 +0200

Update of /api/interface
Modified Files:
        Branch: proposal-branch
          class.interface_browser.php

date: 2004/07/09 14:49:26;  author: dcech;  state: Exp;  lines: +11 -3

Log Message:
Improved login checking routines - this still needs better error reporting
Added support for applications returning errors to browser and SOAP interfaces
Added start and error functions to qa class
=====================================================================
Index: api/interface/class.interface_browser.php
diff -u api/interface/class.interface_browser.php:1.1.2.10 
api/interface/class.interface_browser.php:1.1.2.11
--- api/interface/class.interface_browser.php:1.1.2.10  Sat May  8 22:01:32 2004
+++ api/interface/class.interface_browser.php   Fri Jul  9 14:49:26 2004
@@ -77,7 +77,7 @@
                        $GLOBALS['msgbox']->add(lang($msg.' ').$methodname, 
'access');
                        if (is_array($inputs))
                        {
-                               foreach ($inputs as $key => $val)               
                
+                               foreach ($inputs as $key => $val)
                                {
                                        $input_list[] = array
                                        (
@@ -148,7 +148,15 @@
                        {
                                //$result = 
$GLOBALS['phpgw']->statecache->restore($result);
                        }
-                       $GLOBALS['phpgw_xmldoc']->add_node($result, 'APP');
+                       
+                       if (is_error($result))
+                       {
+                               $result->trigger();
+                       }
+                       else
+                       {
+                               $GLOBALS['phpgw_xmldoc']->add_node($result, 
'APP');
+                       }
                        $GLOBALS['phpgw']->finish();
                }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]