forked from extern/egroupware
Add missing ';' and alter version checking in hook_admin_deleteaccount
This commit is contained in:
parent
0003ec27a0
commit
49a0d8db8a
@ -57,7 +57,7 @@
|
||||
}
|
||||
if($submit=='Delete')
|
||||
{
|
||||
$accountid = $account_id
|
||||
$accountid = $account_id;
|
||||
settype($account_id,'integer');
|
||||
$account_id = get_account_id($accountid);
|
||||
$lid = $phpgw->accounts->id2name($account_id);
|
||||
|
@ -12,10 +12,13 @@
|
||||
/* $Id$ */
|
||||
|
||||
// Delete all records for a user
|
||||
if (floor($PHP_VERSION ) == 4)
|
||||
if (floor(phpversion()) == 4)
|
||||
{
|
||||
global $phpgw, $account_id;
|
||||
}
|
||||
|
||||
$phpgw->accounts->delete($account_id);
|
||||
if($account_id)
|
||||
{
|
||||
$phpgw->accounts->delete($account_id);
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user