Commit 6e4d93b9 authored by Dries's avatar Dries
Browse files

- Patch 6751 by TDobes: fixed call-by-reference problem

parent cc1d535c
......@@ -123,7 +123,7 @@ function profile_view_field($user, $field) {
function profile_view_profile($user) {
profile_load_profile(&$user);
profile_load_profile($user);
$result = db_query('SELECT * FROM {profile_fields} ORDER BY category, weight');
while ($field = db_fetch_object($result)) {
......
......@@ -123,7 +123,7 @@ function profile_view_field($user, $field) {
function profile_view_profile($user) {
profile_load_profile(&$user);
profile_load_profile($user);
$result = db_query('SELECT * FROM {profile_fields} ORDER BY category, weight');
while ($field = 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