Commit 77db60b4 authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent viewing of deleted user's profiles.

parent 4eb093fe
...@@ -69,7 +69,7 @@ EOF; ...@@ -69,7 +69,7 @@ EOF;
$profile = array(); $profile = array();
$userfields = array(); $userfields = array();
if (!$user = get_record('usr', 'id', $userid)) { if (!$user = get_record('usr', 'id', $userid, 'deleted', 0)) {
throw new UserNotFoundException("User with id $userid not found"); throw new UserNotFoundException("User with id $userid not found");
} }
$is_friend = is_friend($userid, $loggedinid); $is_friend = is_friend($userid, $loggedinid);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment