Skip to content

Commit

Permalink
Issue #2026263 by Spleshka: Fixed Wrong default value for 'user_pictu…
Browse files Browse the repository at this point in the history
…res' variable.
  • Loading branch information
DavidRothstein committed Aug 6, 2013
1 parent 9cc5ed7 commit eb13c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/user/user.module
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class UserController extends DrupalDefaultEntityController {
}

// Add the full file objects for user pictures if enabled.
if (!empty($picture_fids) && variable_get('user_pictures', 1) == 1) {
if (!empty($picture_fids) && variable_get('user_pictures', 0)) {
$pictures = file_load_multiple($picture_fids);
foreach ($queried_users as $account) {
if (!empty($account->picture) && isset($pictures[$account->picture])) {
Expand Down

0 comments on commit eb13c0c

Please sign in to comment.