diff options
Diffstat (limited to 'pages/account/58.php')
-rw-r--r-- | pages/account/58.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pages/account/58.php b/pages/account/58.php index 44429e6..dda96e6 100644 --- a/pages/account/58.php +++ b/pages/account/58.php @@ -22,10 +22,11 @@ if ($_SESSION['profile']['admin'] != 1 || !array_key_exists('userid',$_REQUEST) echo _('You do not have access to this page'); } else { $user_id = intval($_REQUEST['userid']); + $query = "select * from `users` where `id`='$user_id' and `users`.`deleted`=0"; + $res = mysql_query($query); if(mysql_num_rows($res) <= 0){ echo _("I'm sorry, the user you were looking for seems to have disappeared! Bad things are a foot!"); } else { - $row = mysql_fetch_assoc($res); $query = "select `users`.`fname`, `users`.`mname`, `users`.`lname`, `orginfo`.`o`, `org`.`masteracc` FROM `users`, `orginfo`, `org` WHERE `users`.`id` = `org`.`memid` AND `orginfo`.`id` = `org`.`orgid` @@ -46,8 +47,8 @@ if ($_SESSION['profile']['admin'] != 1 || !array_key_exists('userid',$_REQUEST) </tr><? while($drow = mysql_fetch_assoc($res)){?> <tr> - <td class="DataTD"><?=$data['o']?></td> - <td class="DataTD"><?=$data['masteracc']?></td> + <td class="DataTD"><?=$drow['o']?></td> + <td class="DataTD"><?=$drow['masteracc'] ? _("Yes") : _("No") ?></td> </tr> <?} ?></table> |