[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php,1.80.2.3
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php,1.80.2.3,1.80.2.4 |
Date: |
Thu, 02 May 2002 03:00:44 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv13069/phpgwapi/inc
Modified Files:
Tag: Version-0_9_14-branch
class.accounts_sql.inc.php
Log Message:
fixed problem with error handling
Index: class.accounts_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.accounts_sql.inc.php,v
retrieving revision 1.80.2.3
retrieving revision 1.80.2.4
diff -C2 -r1.80.2.3 -r1.80.2.4
*** class.accounts_sql.inc.php 21 Apr 2002 17:32:20 -0000 1.80.2.3
--- class.accounts_sql.inc.php 2 May 2002 07:00:42 -0000 1.80.2.4
***************
*** 230,233 ****
--- 230,238 ----
return $account_type[$account_id];
}
+ elseif($account_id = '')
+ {
+ return False;
+ }
+ $this->db->Halt_On_Error = 'no';
$this->db->query("SELECT account_type FROM
phpgw_accounts WHERE account_id=".$account_id,__LINE__,__FILE__);
if ($this->db->num_rows())
***************
*** 240,243 ****
--- 245,249 ----
$account_type[$account_id] = False;
}
+ $this->db->Halt_On_Error = 'yes';
return $account_type[$account_id];
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php,1.80.2.3,1.80.2.4,
Dan Kuykendall <address@hidden> <=