summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rothstein2017-10-04 18:19:58 -0400
committerDavid Rothstein2017-10-04 18:19:58 -0400
commit44c38848b794b5f4e53b1bee2671df59f42f889f (patch)
tree26cd13e5c70116e8e1eaea9ffd49443318b59878
parentb09c86eb170b6ae513c60a9d97a9487f7dc662d8 (diff)
Issue #2899679 by Ayesh, Vj, MustangGB: PHP7 warning when uploading a user picture7.x
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 12ca280..d82c2fa 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -689,7 +689,7 @@ function user_validate_picture(&$form, &$form_state) {
$validators = array(
'file_validate_is_image' => array(),
'file_validate_image_resolution' => array(variable_get('user_picture_dimensions', '85x85')),
- 'file_validate_size' => array(variable_get('user_picture_file_size', '30') * 1024),
+ 'file_validate_size' => array((int) variable_get('user_picture_file_size', '30') * 1024),
);
// Save the file as a temporary file.