Fix editing of a users administrative rights

This commit is contained in:
Tony Lambregts
2006-07-10 02:21:47 +00:00
committed by WineHQ
parent 5b1d16da69
commit 43a49d462a

View File

@@ -3,7 +3,7 @@ require_once(BASE."include/util.php");
$aClean = array(); //array of filtered user input $aClean = array(); //array of filtered user input
$aClean['userId'] = makeSafe($_REQUEST['userId']); $aClean['iUserId'] = makeSafe($_REQUEST['iUserId']);
/*********************/ /*********************/
/* Edit Account Form */ /* Edit Account Form */
/*********************/ /*********************/
@@ -28,7 +28,7 @@ $aClean['userId'] = makeSafe($_REQUEST['userId']);
</tr> </tr>
<?php <?php
// if we manage another user we can give him administrator rights // if we manage another user we can give him administrator rights
if($oUser->iUserId == $aClean['userId']) if($oUser->iUserId == $aClean['iUserId'])
{ {
?> ?>
<tr> <tr>