Add missing ';' and alter version checking in hook_admin_deleteaccount

This commit is contained in:
Miles Lott 2001-03-31 12:03:38 +00:00
parent 0003ec27a0
commit 49a0d8db8a
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}
?>