changed to call id2name()

This commit is contained in:
skeeter 2001-02-13 00:23:00 +00:00
parent d9558f0417
commit c58afa9745
2 changed files with 4 additions and 8 deletions

View File

@ -291,14 +291,12 @@
// set $account_id to uidnumber for sql // set $account_id to uidnumber for sql
$account_id = $allValues[0]["uidnumber"][0]; $account_id = $allValues[0]["uidnumber"][0];
$phpgw->db->query("select account_lid from accounts where account_id=$account_id",__LINE__,__FILE__); $lid = $phpgw->accounts->id2name($account_id);
$phpgw->db->next_record();
$lid = $phpgw->db->f(0);
$table_locks = array('preferences','todo','addressbook','accounts'); $table_locks = array('preferences','todo','addressbook','accounts');
$cal = CreateObject('calendar.calendar'); $cal = CreateObject('calendar.calendar');
$cal->delete($lid); $cal->delete(string($lid));
$phpgw->db->lock($table_locks); $phpgw->db->lock($table_locks);

View File

@ -145,14 +145,12 @@
global $phpgw_info; global $phpgw_info;
$phpgw->db->query("select account_lid from accounts where account_id=$account_id"); $lid = $phpgw->accounts->id2name($account_id);
$phpgw->db->next_record();
$lid = $phpgw->db->f(0);
$table_locks = array('preferences','todo','addressbook','accounts'); $table_locks = array('preferences','todo','addressbook','accounts');
$cal = CreateObject('calendar.calendar'); $cal = CreateObject('calendar.calendar');
$cal->delete($lid); $cal->delete(string($lid));
$phpgw->db->lock($table_locks); $phpgw->db->lock($table_locks);