mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 14:45:43 -07:00
Added ability to view "Watching topics" of other people's (Admins) (#1336)
* Added ability to view "Watching topics" of other people's (For admins only) * Update CHANGELOG.md
This commit is contained in:
parent
3e92b105ad
commit
f154d706f8
6 changed files with 15 additions and 4 deletions
|
@ -755,7 +755,7 @@ function get_username($user_id)
|
|||
return $usernames;
|
||||
}
|
||||
|
||||
$row = DB()->fetch_row("SELECT username FROM " . BB_USERS . " WHERE user_id = $user_id LIMIT 1");
|
||||
$row = DB()->fetch_row("SELECT username FROM " . BB_USERS . " WHERE user_id = '" . DB()->escape($user_id) . "' LIMIT 1");
|
||||
return $row['username'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue