forked from extern/egroupware
Created new delete() for sql.
This commit is contained in:
parent
b1bc8381e1
commit
c9af8bfe46
@ -63,7 +63,16 @@
|
|||||||
$this->db->query("update phpgw_accounts set account_firstname='" . $this->data['firstname']
|
$this->db->query("update phpgw_accounts set account_firstname='" . $this->data['firstname']
|
||||||
. "', account_lastname='" . $this->data['lastname'] . "', account_status='"
|
. "', account_lastname='" . $this->data['lastname'] . "', account_status='"
|
||||||
. $this->data['status'] . "' where account_id='" . $this->account_id . "'",__LINE__,__FILE__);
|
. $this->data['status'] . "' where account_id='" . $this->account_id . "'",__LINE__,__FILE__);
|
||||||
|
}
|
||||||
|
|
||||||
|
function delete($accountid = '')
|
||||||
|
{
|
||||||
|
global $phpgw, $phpgw_info;
|
||||||
|
|
||||||
|
$account_id = get_account_id($accountid);
|
||||||
|
|
||||||
|
// Do this last since we are depending upon this record to get the account_lid above
|
||||||
|
$this->db->query('DELETE FROM phpgw_accounts WHERE account_id='.$account_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user