[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.
From: |
Dave Hall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php,1.80.2.8,1.80.2.9 |
Date: |
Wed, 21 May 2003 17:33:08 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv24630
Modified Files:
Tag: Version-0_9_14-branch
class.accounts_sql.inc.php
Log Message:
cast some account_ids - stops SQL errors
Index: class.accounts_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.accounts_sql.inc.php,v
retrieving revision 1.80.2.8
retrieving revision 1.80.2.9
diff -C2 -r1.80.2.8 -r1.80.2.9
*** class.accounts_sql.inc.php 11 Oct 2002 00:33:25 -0000 1.80.2.8
--- class.accounts_sql.inc.php 21 May 2003 21:33:03 -0000 1.80.2.9
***************
*** 204,208 ****
}
! $this->db->query("SELECT account_lid FROM
phpgw_accounts WHERE account_id=".$account_id,__LINE__,__FILE__);
if($this->db->num_rows())
{
--- 204,208 ----
}
! $this->db->query("SELECT account_lid FROM
phpgw_accounts WHERE account_id=".(int) $account_id,__LINE__,__FILE__);
if($this->db->num_rows())
{
***************
*** 398,402 ****
}
$db = $GLOBALS['phpgw']->db;
! $db->query('select
account_lid,account_firstname,account_lastname from phpgw_accounts where
account_id='.$account_id,__LINE__,__FILE__);
$db->next_record();
$account_name[$account_id]['lid'] =
$db->f('account_lid');
--- 398,402 ----
}
$db = $GLOBALS['phpgw']->db;
! $db->query('select
account_lid,account_firstname,account_lastname from phpgw_accounts where
account_id='.(int) $account_id,__LINE__,__FILE__);
$db->next_record();
$account_name[$account_id]['lid'] =
$db->f('account_lid');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php,1.80.2.8,1.80.2.9,
Dave Hall <address@hidden> <=