diff options
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/profile.admin.inc | 2 | ||||
-rw-r--r-- | modules/profile/profile.module | 4 | ||||
-rw-r--r-- | modules/profile/profile.pages.inc | 2 | ||||
-rw-r--r-- | modules/profile/profile.test | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc index e0252ce10..5ef53ffcb 100644 --- a/modules/profile/profile.admin.inc +++ b/modules/profile/profile.admin.inc @@ -397,7 +397,7 @@ function profile_field_delete_submit($form, &$form_state) { */ function profile_admin_settings_autocomplete($string) { $matches = array(); - $result = db_query_range("SELECT category FROM {profile_field} WHERE LOWER(category) LIKE LOWER(:category)", array(':category' => $string .'%'), 0, 10); + $result = db_query_range("SELECT category FROM {profile_field} WHERE LOWER(category) LIKE LOWER(:category)", array(':category' => $string . '%'), 0, 10); while ($data = db_fetch_object($result)) { $matches[$data->category] = check_plain($data->category); } diff --git a/modules/profile/profile.module b/modules/profile/profile.module index d2e2c3da3..0e97ef2bc 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -293,8 +293,8 @@ function profile_view_field($user, $field) { // and if a user has permission to view profiles. Note that this check is // necessary because a user may always see their own profile. $browse = user_access('access user profiles') - && (user_access('administer users') || $field->visibility != PROFILE_PRIVATE) - && !empty($field->page); + && (user_access('administer users') || $field->visibility != PROFILE_PRIVATE) + && !empty($field->page); if (isset($user->{$field->name}) && $value = $user->{$field->name}) { switch ($field->type) { diff --git a/modules/profile/profile.pages.inc b/modules/profile/profile.pages.inc index 858458eb1..7d1bd4a76 100644 --- a/modules/profile/profile.pages.inc +++ b/modules/profile/profile.pages.inc @@ -114,7 +114,7 @@ function profile_autocomplete($field, $string) { if ($autocomplete_field) { $result = db_query_range("SELECT value FROM {profile_value} WHERE fid = :fid AND LOWER(value) LIKE LOWER(:value) GROUP BY value ORDER BY value ASC", array( ':fid' => $field, - ':value' => $string .'%', + ':value' => $string . '%', ), 0, 10); while ($data = db_fetch_object($result)) { $matches[$data->value] = check_plain($data->value); diff --git a/modules/profile/profile.test b/modules/profile/profile.test index 3d35f153b..bbb26deaf 100644 --- a/modules/profile/profile.test +++ b/modules/profile/profile.test @@ -136,7 +136,7 @@ class ProfileTestFields extends ProfileTestCase { 'checkbox' => 1, // An underscore is an invalid character in a domain name. The method randomName can // return an underscore. - 'url' => 'http://www.' . str_replace('_', '', $this->randomName(10)). '.org', + 'url' => 'http://www.' . str_replace('_', '', $this->randomName(10)) . '.org', ); // For each field type, create a field, give it a value and delete the field. @@ -263,7 +263,7 @@ class ProfileTestAutocomplete extends ProfileTestCase { // Set some html for what we want to see in the page output later. $autocomplete_html = '<input class="autocomplete" type="hidden" id="' . form_clean_id('edit-' . $field['form_name'] . '-autocomplete') . '" value="' . url('profile/autocomplete/' . $field['fid'], array('absolute' => TRUE)) . '" disabled="disabled" />'; - $field_html = '<input type="text" maxlength="255" name="' . $field['form_name'] . '" id="'. form_clean_id('edit-' . $field['form_name']) . '" size="60" value="' . $field['value'] . '" class="form-text form-autocomplete required" />'; + $field_html = '<input type="text" maxlength="255" name="' . $field['form_name'] . '" id="' . form_clean_id('edit-' . $field['form_name']) . '" size="60" value="' . $field['value'] . '" class="form-text form-autocomplete required" />'; // Check that autocompletion html is found on the user's profile edit page. $this->drupalGet('user/' . $this->admin_user->uid . '/edit/' . $category); |