mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
changed to call id2name()
This commit is contained in:
parent
d9558f0417
commit
c58afa9745
@ -291,14 +291,12 @@
|
||||
// set $account_id to uidnumber for sql
|
||||
$account_id = $allValues[0]["uidnumber"][0];
|
||||
|
||||
$phpgw->db->query("select account_lid from accounts where account_id=$account_id",__LINE__,__FILE__);
|
||||
$phpgw->db->next_record();
|
||||
$lid = $phpgw->db->f(0);
|
||||
$lid = $phpgw->accounts->id2name($account_id);
|
||||
|
||||
$table_locks = array('preferences','todo','addressbook','accounts');
|
||||
|
||||
$cal = CreateObject('calendar.calendar');
|
||||
$cal->delete($lid);
|
||||
$cal->delete(string($lid));
|
||||
|
||||
$phpgw->db->lock($table_locks);
|
||||
|
||||
|
@ -145,14 +145,12 @@
|
||||
global $phpgw_info;
|
||||
|
||||
|
||||
$phpgw->db->query("select account_lid from accounts where account_id=$account_id");
|
||||
$phpgw->db->next_record();
|
||||
$lid = $phpgw->db->f(0);
|
||||
$lid = $phpgw->accounts->id2name($account_id);
|
||||
|
||||
$table_locks = array('preferences','todo','addressbook','accounts');
|
||||
|
||||
$cal = CreateObject('calendar.calendar');
|
||||
$cal->delete($lid);
|
||||
$cal->delete(string($lid));
|
||||
|
||||
$phpgw->db->lock($table_locks);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user