Fix user deletion

This commit is contained in:
Jonathan Ernst
2005-02-14 18:20:48 +00:00
committed by WineHQ
parent eabfb4d866
commit 209f58ff3f
2 changed files with 5 additions and 10 deletions

View File

@@ -4,7 +4,7 @@
/********************/
include("path.php");
include(BASE."include/"."incl.php");
include(BASE."include/incl.php");
apidb_header("Admin Users Management");
@@ -18,11 +18,7 @@ if(!$_SESSION['current']->hasPriv("admin"))
if($_REQUEST['action'] == "delete" && is_numeric($_REQUEST['userId']))
{
$oUser = new User($_REQUEST['userId']);
$sEmail = $oUser->sEmail;
if($sEmail)
{
$oUser->delete();
}
$oUser->delete();
}
// search form