phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] api class.account_mgr.php,1.1.2.21,1.1.2.22


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api class.account_mgr.php,1.1.2.21,1.1.2.22
Date: Fri, 14 Nov 2003 03:29:43 +0000

Update of /cvsroot/phpgroupware/api
In directory subversions:/tmp/cvs-serv10074/api

Modified Files:
      Tag: proposal-branch
        class.account_mgr.php 
Log Message:
Added error reporting for when an account_id doesn't exist


Index: class.account_mgr.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/Attic/class.account_mgr.php,v
retrieving revision 1.1.2.21
retrieving revision 1.1.2.22
diff -C2 -d -r1.1.2.21 -r1.1.2.22
*** class.account_mgr.php       14 Nov 2003 03:26:17 -0000      1.1.2.21
--- class.account_mgr.php       14 Nov 2003 03:29:41 -0000      1.1.2.22
***************
*** 360,363 ****
--- 360,370 ----
                        $args = $args->get(func_get_args(),__LINE__,__FILE__);
  
+                       if (! 
$GLOBALS['phpgw']->accounts->cross_reference((int)$args['account_id']))
+                       {
+                               // This normally shouldn't happen
+                               $GLOBALS['msgbox']->add(lang('The account you 
are tring to view could not be found'),__LINE__,__FILE__, 'warning');
+                               return;
+                       }
+ 
                        $GLOBALS['phpgw']->add_xsl('api.widgets');
                        $args['account']        = $args['account_id'];





reply via email to

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