diff options
author | INOPIAE <inopiae@cacert.org> | 2013-02-20 01:01:12 +0100 |
---|---|---|
committer | INOPIAE <inopiae@cacert.org> | 2013-02-20 01:01:12 +0100 |
commit | a47ba846e04fd7dfde751332bfff39c5ceb17775 (patch) | |
tree | 124e4c10bbabc68a7f444bcc0188d1f70d6cec19 /pages/account | |
parent | f25e34aa0700891f3c5b7ea2dceb2d38bfbbb1b5 (diff) | |
download | cacert-devel-a47ba846e04fd7dfde751332bfff39c5ceb17775.tar.gz cacert-devel-a47ba846e04fd7dfde751332bfff39c5ceb17775.tar.xz cacert-devel-a47ba846e04fd7dfde751332bfff39c5ceb17775.zip |
bug 1008: changed user output
Diffstat (limited to 'pages/account')
-rw-r--r-- | pages/account/58.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pages/account/58.php b/pages/account/58.php index 233f37c..a277876 100644 --- a/pages/account/58.php +++ b/pages/account/58.php @@ -22,12 +22,11 @@ if ($_SESSION['profile']['admin'] != 1 || !array_key_exists('userid',$_REQUEST) $user_id = intval($_REQUEST['userid']); $query = "select `users`.`fname`, `users`.`mname`, `users`.`lname`, from `users` where `id`='$user_id' and `users`.`deleted`=0"; $res = mysql_query($query); - if(mysql_num_rows($res) <= 0){ + if(mysql_num_rows($res) != 1){ echo _("I'm sorry, the user you were looking for seems to have disappeared! Bad things are a foot!"); } else { - while($row = mysql_fetch_assoc($res)){ + if ($row = mysql_fetch_assoc($res)){ $username=sanitizeHTML($row['fname']).' '.sanitizeHTML($row['mname']).' '.sanitizeHTML($row['lname']); - } $query = "select `orginfo`.`o`, `org`.`masteracc` FROM `orginfo`, `org` WHERE `orginfo`.`id` = `org`.`orgid` @@ -54,6 +53,9 @@ if ($_SESSION['profile']['admin'] != 1 || !array_key_exists('userid',$_REQUEST) <?} } ?></table> -<? } +<? }else{ + echo _("I'm sorry, the user you were looking for seems to have disappeared! Bad things are a foot!"); + } + } } ?> |