forked from extern/egroupware
changed to call id2name()
This commit is contained in:
parent
d9558f0417
commit
c58afa9745
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user