From 70e25d73f19c85ac6ae5c916eccb21f2fd871d0d Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Fri, 27 Dec 2013 15:52:38 -0500 Subject: Issue #2090207 by helmo, davidhunter, Tor Arne Thune: Undefined property: stdClass::$visibility in profile_view_field(). --- modules/profile/profile.pages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/profile') diff --git a/modules/profile/profile.pages.inc b/modules/profile/profile.pages.inc index 06f963238..db65e9ac7 100644 --- a/modules/profile/profile.pages.inc +++ b/modules/profile/profile.pages.inc @@ -27,7 +27,7 @@ function profile_browse() { } // Compile a list of fields to show. - $fields = db_query('SELECT name, title, type, weight, page FROM {profile_field} WHERE fid <> :fid AND visibility = :visibility ORDER BY weight', array( + $fields = db_query('SELECT name, title, type, weight, page, visibility FROM {profile_field} WHERE fid <> :fid AND visibility = :visibility ORDER BY weight', array( ':fid' => $field->fid, ':visibility' => PROFILE_PUBLIC_LISTINGS, ))->fetchAll(); -- cgit v1.2.3