From c1856e28f8c8d55c1d49b533b10cc1b88e02984c Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Wed, 9 Jan 2013 14:20:33 +0100 Subject: bug 1008: Add call on pages/account/43.php and small changes in pages/account/58.php --- pages/account/58.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pages/account/58.php') 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) - - + + -- cgit v1.2.1