Commit 64a24732 authored by Dries's avatar Dries
Browse files

- Modified patch #89405 by hiweed: fixed SQL error in profile module.

parent d6de281b
......@@ -466,7 +466,7 @@ function profile_browse() {
}
// Extract the affected users:
$result = pager_query('SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = %d AND $query AND u.access != 0 AND u.status != 0 ORDER BY u.access DESC', 20, 0, NULL, $arguments);
$result = pager_query("SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = %d AND $query AND u.access != 0 AND u.status != 0 ORDER BY u.access DESC", 20, 0, NULL, $arguments);
$output = '<div id="profile">';
while ($account = db_fetch_object($result)) {
......
Markdown is supported
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